Sorting Keys: for Loops
As mappings, as we’ve already seen, dictionaries only support accessing items by key.
However, they also support type-specific operations with method calls that are useful
in a variety of common use cases.
As mentioned earlier, because dictionaries are not sequences, they don’t maintain any
dependable left-to-right order. This means that if we make a dictionary and print it
back, its keys may come back in a different order than that in which we typed them: