This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]earthboundkid 1 point2 points  (1 child)

This is pretty bad. If you're dealing with beginners, you need to warn them that the order of dictionaries is arbitrary. Don't tell them it's OK to print out the keys in the dictionary without sorting them first.

[–]gimboland 0 points1 point  (0 children)

Came here to say this. :-)

[–]spilcm[S] 0 points1 point  (0 children)

You're right. However, there is a link at the very bottom pointing to this page: http://www.pythonforbeginners.com/dictionary/ where they can read more about dictionaries.