CBSE Class 11 Computer Science Question 50 of 88

Tuples and Dictionary — Question 15

Back to all questions
15
Question

Question 12(d)

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

pop d1[4]
Answer

Th syntax of pop() method is dictname.pop(key).

The corrected code is:

d1.pop(4)