What do we do, though, if we do need to impose an ordering on a dictionary’s items?
One common solution is to grab a list of keys with the dictionary keys method, sort
that with the list sort method, and then step through the result with a Python for loop
(be sure to press the Enter key twice after coding the for loop below—as explained in
Chapter 3, an empty line means “go” at the interactive prompt, and the prompt changes