Can anyone explain this behaviour of python dictionaries?
d = {}
d[True] = 'Magic'
d[1] = 'Cool'
d[1.0] = 'Hello'
print(d)
# {True: 'Hello'}
Why does it not print all the other (key, value) pairs?
Why does True, 1 and 1.0 is evaluated to be the same?