Articles → Python → Tupple Unpacking In PythonTupple Unpacking In PythonIn this article, we will create an example of tuple unpacking.Example Consider a list of tupleslist = [(1,2) , (3,4), (5,6)]Now, if we want to unpack tuple i.e. access each element of the listlist = [(1,2) , (3,4), (5,6)] for (a,b) in list: print(a,",",b)Here is the outputClick to EnlargePosted By - Karan Gupta Posted On - Thursday, March 14, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
list = [(1,2) , (3,4), (5,6)]
list = [(1,2) , (3,4), (5,6)] for (a,b) in list: print(a,",",b)
Query/Feedback