KnowledgeBoat Logo
|

Informatics Practices

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

pop d1[4]

Python Dictionaries

2 Likes

Answer

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

The corrected code is:

d1.pop(4)

Answered By

3 Likes


Related Questions