A dictionary in Python is very similar to a dictionary in the real world. You have a key and a definition. It is accessed by a key and not a definition.
There are few ways you can loop through dictionaries in Python 3.
Iterate over keys
Iterate over values
Iterate over key/value pairs
Iterate over keys in sorted order
Iterate over nested dictionary
You can also iterate through a nested dictionary.
Nested dictionary example: