CBSE Class 11 Computer Science Question 53 of 88

Tuples and Dictionary — Question 18

Back to all questions
18
Question

Question 12(g)

Find errors and rewrite the same after correcting the following code:

d1.value()
Answer

The correct method to retrieve all values from a dictionary is values(), not value().

The corrected code is:

d1.values()