Answers for "generate a list of tuples python"

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 "generate a list of tuples python"

Python Answers by Framework

Browse Popular Code Answers by Language