Articles → Python → Tupple Unpacking In Python

Tupple Unpacking In Python






Example




list = [(1,2) , (3,4), (5,6)]




list = [(1,2) , (3,4), (5,6)]

for (a,b) in list:
    print(a,",",b)




Picture showing the output of tupple unpacking in python

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, March 14, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250