Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idle flips my dictionary
#1
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.
Reply


Messages In This Thread
idle flips my dictionary - by shayhi - Sep-20-2018, 02:31 AM
RE: idle flips my dictionary - by ichabod801 - Sep-20-2018, 03:35 AM
RE: idle flips my dictionary - by snippsat - Sep-20-2018, 05:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  IDLE not importing pygame (ok outside of IDLE) miner_tom 1 3,341 Sep-14-2018, 07:54 PM
Last Post: Larz60+
  Python IDLE 3.6.2 on WIn7 vs Pyhton 3 IDLE raspberry djdan_23 5 5,738 Sep-07-2017, 12:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020