Python: Loop Thru List
Loop thru a list with item's values
aa = ["a", "b", "c"] for xx in aa: print(xx) # a # b # c
Loop thru a list with item's index and value
bb = ["a", "b", "c"] for ii, vv in enumerate(bb): print(ii, vv) # 0 a # 1 b # 2 c
Python: Loop
Python Data Structure
- Python: List
- Python: Generate List: range
- Python: Generate List (List Comprehension)
- Python: List Methods
- Python: Loop Thru List
- Python: Map, Filter, List
- Python: Iterator to List
- Python: Copy Nested List, Shallow/Deep Copy
- Python: Sort
- Python: Dictionary
- Python: Loop Thru Dictionary
- Python: Dictionary Methods
- Python: Tuple
- Python: Sets, Union, Intersection
- Python: Sequence Types
- Python: Read/Write to JSON