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
Find errors and rewrite the same after correcting the following code:
d1(9) = 90Find errors and rewrite the same after correcting the following code:
del d1(2)Find errors and rewrite the same after correcting the following code:
d1.item()Find errors and rewrite the same after correcting the following code:
d1.key()