Instruction
Good job! To delete a dictionary entry, you can use the del operator, just like with lists:
phonebook = {'Mary': '8349374', 'Anne': '7439834', 'John': '3472983'}
del phonebook['Mary'] # Mary no longer with us
In the case of lists, the del operator was dangerous, as it shifted multiple indices in the list to clean up empty spaces in the list.
Exercise
Delete the dictionary item from 2001 that you added in the previous exercise.
Stuck? Here's a hint!
Use the del operator.



