Python Forum
i keep getting unordered output when using dictionaries
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i keep getting unordered output when using dictionaries
#1
Hello guys, i'm new here. please go easy on me Smile

i got a quite dummy question to ask. when i used the dictionaries data structure, i keep getting the output randomly ordered. this is the example of it:

content_ratings = {'4+': 4433, '9+': 987, '12+': 1155, '17+': 622}

print(content_ratings)
and the output will be:

Output:
{'9+': 987, '4+': 4433, '12+': 1155, '17+': 622}
i don't know how the index are not the same with the way i write the code. it's quite confusing. thank you in advance guys
Reply


Messages In This Thread
i keep getting unordered output when using dictionaries - by fuadfzy - Aug-23-2019, 09:28 AM

Forum Jump:

User Panel Messages

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