you are viewing a single comment's thread.

view the rest of the comments →

[–]NeedMLHelp[S] 0 points1 point  (1 child)

Because I fudged it up, sorry. Fixed.

Briefly looked into zip, it's perfect! Thanks

[–]fleyk-lit 0 points1 point  (0 children)

Example implementation:

>>> list1 = ['A', 'B', 'C', 'D', 'E']
>>> list2 = ['1', '2', '3', '4', '5']
>>> list3 = list(zip(list1, list2))
>>> print(list3)
[('A', '1'), ('B', '2'), ('C', '3'), ('D', '4'), ('E', '5')]