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)





Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250