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 contactdict, delete the key from contactdict.
Otherwise, output the string followed by not found'.
Here is the provided code:
contactdict Ani: 'ani@apricot.com', 'Ben': 'ben@orange.org', 'Dan': 'dan@pear.org'
# enter your code here
printUpdated contact dict:
printcontactdict
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
