To delete a key-value pair from the dictionary we can use the del
keyword.
Another way to remove an item from a dictionary is by using the .pop()
method. The difference between .pop()
and del
is that that .pop()
returns the value of the deleted item.