CBSE Class 11 Computer Science Question 19 of 39

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)
Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.