Python Programming - Dictionaries - Discussion
Discussion Forum : Dictionaries - General Questions (Q.No. 9)
9.
What is the result of the expression
dictionary.get('key', 'default')
?
Answer: Option
Explanation:
The
get()
method returns the value for 'key' if present, otherwise returns the specified default value.
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