Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 4)
4.
How do you remove a key-value pair from a dictionary?
dictionary.remove_key(key)
dictionary.delete(key)
dictionary.remove(key)
dictionary.pop(key)
Answer: Option
Explanation:
The pop() method is used to remove a key-value pair from a dictionary.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.