Sep-20-2018, 02:31 AM
I am using idle 3.4.3's interactive shell
If I put in the following code into the python interactive shell it reverses the dictionary spam and i don't know why.
spam = {'color': 'red', 'age': 42}
spam
idle will output {'age': 42, 'color': 'red'}
can someone tell me what is causing this.
If I put in the following code into the python interactive shell it reverses the dictionary spam and i don't know why.
spam = {'color': 'red', 'age': 42}
spam
idle will output {'age': 42, 'color': 'red'}
can someone tell me what is causing this.