Python List of Tuples
Jump to navigation
Jump to search
A Python List of Tuples is a Python list composed of Python tuples.
- Example(s):
l = [(0,'a'), (1,'b'), (2,'c')]
for item in zip(*l)[0]:
print(item)
- Counter-Example(s):
- A Python List of Lists, such as:
LoL = [[3, 'a', 4], ['b', 5, 11], [1, 7, 3.1]]
- a Python List of Dictionaries.
- A Python List of Lists, such as:
- See: Python Matrix.