Cómo emparejar dos listas en Python
x = [1, 2, 3]
y = [4, 5, 6]
l = list(zip(x, y))
print(l)
>>> [(1, 4), (2, 5), (3, 6)]
Happy Friend
x = [1, 2, 3]
y = [4, 5, 6]
l = list(zip(x, y))
print(l)
>>> [(1, 4), (2, 5), (3, 6)]
#Two lists
keys = ["Foo", "Bar", "Done"]
values = [1, 6, 9]
d = dict(zip(keys, values))
d
>>>{'Foo': 1, 'Bar': 6, 'Done': 9}