Mega Code Archive

 
Categories / Python / Buildin Function
 

Read element in a zipped list

L1 = [1,2,3,4] L2 = [5,6,7,8] print zip(L1,L2) for (x,y) in zip(L1, L2):      print x, y, '--', x+y