Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 42)
42.
How do you remove a specific key-value pair from a dictionary?
dictionary.remove(key)
dictionary.delete(key)
dictionary.clear(key)
del dictionary[key]
Answer: Option
Explanation:
The del keyword is used to remove a specific 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.