Create a dictionary from two lists with zip():
keys = ["name", "age", "city"]
values = ["Alice", 30, "NYC"]
person = dict(zip(keys, values))
print(person) # {"name": "Alice", "age": 30, "city": "NYC"}
zip() pairs up elements from both lists. dict() converts those pairs into a dictionary.
This is useful when you have separate lists of keys and values.