this might be a naive question, I have two lists, say list1 and list2.
list1 =[[('a', 'b'), ('c', 'd')], [('e', 'f'), ('g', 'h')]]
list2 =['aa', 'aa']
When I do
dict(zip(list2, list1))
I get the following
{'aa': [('e', 'f'), ('g', 'h')]}
The output I want is
{'aa': [('a', 'b'), ('c', 'd')], 'aa': [('e', 'f'), ('g', 'h')]}
When I change list2 to:
list2 = ['aa1', 'aa2']
dict(zip(list2, list1))
gives
{'aa1': [('a', 'b'), ('c', 'd')], 'aa2': [('e', 'f'), ('g', 'h')]}
Why I am not getting desired output in the first case? Could you please help me on this. Thanks in advance.