CBSE Class 11 Computer Science
Question 18 of 39
Tuples and Dictionary — Question 19
Back to all questionsThe correct method to retrieve a value for a given key is get(), not gets().
The corrected code is:
d1.get(4, 80)The correct method to retrieve a value for a given key is get(), not gets().
The corrected code is:
d1.get(4, 80)