Zip three tuples : zip « Buildin Function « Python






Zip three tuples

Zip three tuples

T1, T2, T3 = (1,2,3), (4,5,6), (7,8,9)
print T3

print zip(T1,T2,T3)

           
       








Related examples in the same category

1.Generator ExpressionsGenerator Expressions
2.Loop over two or more sequences at the same timeLoop over two or more sequences at the same time
3.Zip a two listsZip a two lists
4.Read element in a zipped listRead element in a zipped list
5.Difference between zip and mapDifference between zip and map
6.Zip function demo: returns a list of tuplesZip function demo:  returns a list of tuples