Python: Iterator to List
list(iterator_obj)
-
Return a list represented by iterator_obj.
def ff(nn): return nn + 1 s1 = [1, 2, 3, 4] s2 = map(ff, s1) print(list(s2) == [2, 3, 4, 5])
Python, Data Structure
- Python: List
- Python: Generate List: range
- Python: List Comprehension
- Python: List Methods
- Python: Iterate List
- Python: Map f to List
- Python: Filter List
- Python: Iterator to List
- Python: Copy Nested List, Shallow/Deep Copy
- Python: Sort
- Python: Dictionary
- Python: Iterate Dictionary
- Python: Dictionary Methods
- Python: Tuple
- Python: Sets, Union, Intersection
- Python: Sequence Types
- Python: Read Write JSON