Answers for "python create list of tuple from list"

1

generate a list of tuples python

>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> zipped
[(1, 4), (2, 5), (3, 6)]
Posted by: Guest on December-14-2020

Code answers related to "python create list of tuple from list"

Python Answers by Framework

Browse Popular Code Answers by Language