Iterating over a dictionary using a ''for'' loop, getting keys
The operation items() will work for both 2 and 3, but in 2 it will return a list of the dictionary''s (key, value) pairs, which will not reflect changes to the dict that happen after the items() call.