what to do in case we have multiples keys with same values in python dictionary code example
Example 1: dictionary multiple values per key
key = "somekey"
a.setdefault(key, [])
a[key].append(1)
Example 2: how to use multiple keys for single value in dictionary python
#Python Dictionary only contain one key : one value pair.
#You can surely have multiple keys having same value
#Example :-
dict = {'a':'value1', 'b':'value2', 'c':'value 3'}
#In above we have a and b key having same values