CBSE Class 11 Computer Science Question 55 of 88

Tuples and Dictionary — Question 20

Back to all questions
20
Question

Question 12(i)

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

d1.len()
Answer

The syntax of len() function is len(dict).

The corrected code is:

len(d1)