In the answer provided, the output starts at the lowest interval. However, with my code, the output of the dictionary begins from the highest interval.
Dictionaries aren’t sorted by the order of insertion prior to python version 3.6 and our platform is using version 3.4.3. Therefore, dictionaries will be printed in random order.
You can print the python version by using this code:
import platform print(platform.python_version())