I have two list:
lists = [\'a\',\'b\',\'c\',\'d\',\'e\'] keys = [18,18,3,4,5]
what I want is a dictionary like this:
{18:[\'a\',\'
Easy way is to use zip.
dictionary = dict(zip(keys, values))