Informatics Practices

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

pop d1[4]

Python Dictionaries

1 Like

Answer

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

The corrected code is:

d1.pop(4)

Answered By

1 Like


Related Questions