Based on what’s in your question, this will do what you’re looking for:
a = [[1], [2], [3]]
print('[')
for elem in a:
print(elem)
print(" ")
print(']')
More Related Contents:
- How to iterate through two lists in parallel?
- How to check if all elements of a list match a condition?
- How can I iterate through two lists in parallel?
- How to loop through all but the last item of a list?
- How do I iterate through two lists in parallel?
- How do I loop through a list by twos? [duplicate]
- How to frame two for loops in list comprehension python
- Why does a for-loop with pop-method (or del statement) not iterate over all list elements [duplicate]
- interleaving 2 lists of unequal lengths [duplicate]
- What is the meaning of list[:] in this code? [duplicate]
- How to get the previous element when using a for loop? [duplicate]
- Converting List Comprehensions to For Loops in Python
- Strange result when removing item from a list while iterating over it in Python
- How to change variables fed into a for loop in list form
- Python single line for loops [duplicate]
- Iterating over every two elements in a list [duplicate]
- What are the advantages of NumPy over regular Python lists?
- Remove all occurrences of a value from a list?
- Why can’t I use a list as a dict key in python?
- Iterate through pairs of items in a Python list [duplicate]
- Creating a list of dictionaries results in a list of copies of the same dictionary
- Pythonic way to create union of all values contained in multiple lists
- How to save a list to a file and read it as a list type?
- Finding a substring within a list in Python [duplicate]
- Python: filter list of list with another list
- Most Pythonic Way to Build Dictionary From Single List
- Converting integer to digit list
- Share a list between different processes?
- Counting depth or the deepest level a nested list goes to
- Which is the most efficient way to iterate through a list in python?