+ 2
Can anybody explain me that code? How it comes to "4"?
*x,y = [1,2], [3,4], [5,6], print(list(zip(*x+[y]))[1][1])
3 Answers
+ 10
look here -> just run it
https://code.sololearn.com/cqlUsKo86E9K/?ref=app
+ 2
code playground is your helper.
and read help for zip and * -operator.
list(zip(*x+[y])) generates
[(1,3,5),(2,4,6)]
0
Thanks a lot. Everything's clear.