programming-examples/python/Tuple/Python program to unzip a list of tuples into individual lists.py

3 lines
64 B
Python
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
#create a tuple
l = [(1,2), (3,4), (8,9)]
print(list(zip(*l)))