CBSE Class 11 Informatics Practices Question 39 of 66

Dictionary — Question 11

Back to all questions
11
Question

Question 3(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)