Search for question
Question

Part B:

You have a dictionary representing ages of several programmers. Create a new dictionary,

filtered_dict (with the name of the programmers as the key and their age as the value), that

only contains those who are older than 25 but younger than 40, and whose names have more than

4 letters. [4 points]

original_dict = {'Joe': 35, 'Emma': 41, 'Ramkumar': 28,'Byung': 52, 'Sam': 38)

filtered_dict =

{}

for key, value in original_dict.items():

if

and

and

Fig: 1