+ 1
what do zip. in python
5 Answers
+ 1
It combines 2 or 3 lists together into 1 list and puts the values with the same index side by side in a parenthesis within the new list.
+ 1
for example zip(a,b) if a=1 ,2,3 b = 2,6,6 .what is it give us??
+ 1
[(1, 2), (2, 6), (3, 6)]
+ 1
No problem :)
0
thanks very very much