In Python 3.5x executed the below code
for key in {'six':-99, 'one':1, '1.5': 1.5, 'two':2, 'five':5}:
print(key)
I was expecting the output in the below order
- six, one, 1.5, two, five
and got the below output
- 1.5, six, five, two, one
Why this weird behaviour, that too without requesting to change the order, also why this random order ?
you can try at the below link