Exercise: Filter dictionary by value

Filter the customers dictionary to extract the highest spending customers.
Loop through the key-value pairs of the customers dictionary. If a customer spent more than 500, add them to the top_customers dictionary.
customers = { 'A': 450, 'B': 550, 'C': 600, 'D': 300, 'E': 700 } top_customers = {} # iterate over customers here...
for
print(top_customers) # expected output: # {'B': 550, 'C': 600, 'E': 700 }
Python
Setting up Python environment...
Output