how to loop over a dictionary based on a value in python code example Example: iterate through keys in dictionary for key in dictionary_name: