keys, values)) # {'a': 2, 'c': 4, 'b': 3}
#make a function: def is the keyword for the function:
def to_dictionary(keys, values):
#return is the keyword that tells program that function has to return value   
return dict(zip(keys, values))
# keys and values are the lists:
keys = ["a", "b", "c"]   
values = [2, 3, 4]
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter