create dictionary key and values from lists

keys = ['a', 'b', 'c']
values = [1, 2, 3]
dictionary = dict(zip(keys, values))
print(dictionary) # {'a': 1, 'b': 2, 'c': 3}

Here is what the above code is Doing:
1. We create a list of keys and a list of values.
2. We use the zip function to combine the keys and values into a list of tuples.
3. We pass the list of tuples to the dict function to create a dictionary.