Thursday, 16 December 2021

Python-Slip27-A-Write a Python program to unzip a list of tuples into individual lists.

 Write a Python program to unzip a list of tuples into individual lists.     

 #create a tuple

a = [(1,2), (3,4), (8,9)]

print(list(zip(*a)))