Sobes.tech
Junior — Senior

How does Python handle duplicate keys in a dictionary

livecode

Task condition

Determine what value will be printed when printing a dictionary that contains keys considered equal according to comparison rules.


d = {1: 'a', True: 'b', 1.0: 'c'}
print(d)