If I create a dictionary with two of the same key, as shown below with name
being there twice:
test = {'name': 'hello', 'test': 'rawr', 'next': 'muhahah', 'name': None, 'la': 'alala'}
How does python behave with this setup, does it keep both keys, or just one? And will it always return a certain one if I do test['name']
?
With my own testing it returns the second one, just looking for some more information.