Question about dictionaries
I'm working through chapter 3 on variables. In the section on dictionaries (page 39-40 specifically), you define a dictionary variable menu_specials at one time by putting in pairs for keys breakfast, lunch and dinner and their values within a set of curly braces. But, when you run the command print(menu_specials), the dictionary is printed out with lunch first and then breakfast and then dinner. Why does it do that? I can see that it's not in order of entry, nor does it seem to be in order by key (alphabetically) nor by value, so what's up?
Thank you!
|