How do I Combine (zip) two lists in python?
values = [1,2,3] weights = [4,5,6] zip(values, weights) list(zip(values, weights))
<zip object at 0x10bb42188> [(1, 4), (2, 5), (3, 6)]
Link to documentation or other source
30 May 2019
Author: Mies van Hamelen
This example has been recommended 1 times.
Would you recommend this example to your colleagues?