Aug-13-2020, 01:25 PM
list1 = [-1,3,8,2,9,5] list2 = [4,1,2,10,5,20] for e1, e2 in zip(list1, list2): print(e1, e2)
Output:-1 4
3 1
8 2
2 10
9 5
5 20
Or if you want to make a new list from it:list12 = list(zip(list1, list2))If you require other results, then give us an example.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!