Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to iterate through a list of lists

>>> a = [[1, 3, 4], [2, 4, 4], [3, 4, 5]]
>>> a
[[1, 3, 4], [2, 4, 4], [3, 4, 5]]
>>> for list in a:
...     for number in list:
...         print number
...
1
3
4
2
4
4
3
4
5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #iterate #list #lists
ADD COMMENT
Topic
Name
3+1 =