Question: Read strings from input until 'stop' is read. For each string read: If the string is a key in dictionary contact _ dict, delete the

Read strings from input until 'stop' is read. For each string read:
If the string is a key in dictionary contact_dict, delete the key from contact_dict.
Otherwise, output the string followed by ' not found'.
Here is the provided code:
contact_dict ={'Ani': 'ani@apricot.com', 'Ben': 'ben@orange.org', 'Dan': 'dan@pear.org'}
# enter your code here
print('Updated contact dict:')
print(contact_dict)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!