How to loop through all nested dictionary values in Python?

I have a nested dictionary in Python, and I want to loop through all the values in it, including the values in the nested dictionaries. How can I do this?

I have tried using nested loops, but they only iterate through the first level of values. Here is the sample code that I tried:

This code only prints the values of the first level of the dictionary. How can I loop through all the nested values as well? Any help would be appreciated.