Question #900

What is the output of the code snippet below?
print({True: 5, True: 10})

Dictionaries don't allow duplicates. In the example below, only the pair {True: 10} will stay as it is the latest one inserted. (stackoverflow.com/questions/63881237/python-dictionaries-...)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต