Slip 27 - A) Write a Python program to unzip a list of tuples into individual lists.

Solution :

l = [(1,2), (3,4), (8,9)]
print(list(zip(*l)))

Output:

Output_pic


Post a Comment

0 Comments