Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 179 Bytes

iterate-over-nested-lists.md

File metadata and controls

7 lines (5 loc) · 179 Bytes

Iterate over nested lists

Python lists follow this logic when iterating: [thing for thing in list_of_things]

mylist = [[x for x in range(10)] for _ in range(10)]