same way you did the fill in, but reverse the indexes:
>>> for j in range(columns):
... for i in range(rows):
... print mylist[i][j],
...
0,0 1,0 2,0 0,1 1,1 2,1
>>>
More Related Contents:
- Can someone explain what all the codes mean? PYTHON [closed]
- look through a very large numbers (1.2e+34) in Python
- Create a list of names whose height is higher than 160 – Explanation on nested dicts cycling [closed]
- How do you create different variable names while in a loop? [duplicate]
- Iterate through pairs of items in a Python list [duplicate]
- Breaking out of nested loops [duplicate]
- How does numpy.newaxis work and when to use it?
- raw_input and timeout [duplicate]
- Loop backwards using indices in Python?
- When to use “while” or “for” in Python
- Concatenate Numpy arrays without copying
- Python: How to keep repeating a program until a specific input is obtained? [duplicate]
- Swap slices of Numpy arrays
- Pythonic way to combine for-loop and if-statement
- Updating value in iterrow for pandas
- Understanding for loops in Python
- Using a loop to create and assign multiple variables (Python) [duplicate]
- How do I write a loop to repeat the code?
- Mixing files and loops
- Vectorized spatial distance in python using numpy
- Iterating through a JSON object
- Good ways to “expand” a numpy ndarray?
- How to sort a 2D list? [closed]
- Access n-th dimension in python [duplicate]
- Modifying a list while iterating when programming with python [duplicate]
- How does the axis parameter from NumPy work?
- How can I turn a flat list into a 2D array in python?
- Get the indices of N highest values in an ndarray
- How to find the maximum number in a list using a loop?
- How to convert a 3d numpy array to 2d