Read element in a zipped list : Zip : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Zip »

 

Read element in a zipped list


Read element in a zipped list


L1 = [1,2,3,4]
L2 = [5,6,7,8]

print zip(L1,L2)

for (x,yin zip(L1, L2):
     print x, y, '--', x+y


           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Buildin Function
» Zip