Can I have a dictionary with same-name keys?

Viewed 22986

I need to have a dictionary which might have same names for some keys and return a list of values when referencing the key in that case.

For example

print mydict['key']
[1,2,3,4,5,6]
6 Answers
Related