Python Programming - Dictionaries - Discussion
Discussion Forum : Dictionaries - General Questions (Q.No. 38)
38.
What is the purpose of the
dictionary.pop(key, default_value)
method?
Answer: Option
Explanation:
The
pop()
method with a default value removes the specified key and returns its value, or returns the default value if the key is not present.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers