Suppose D 8220john822140 8220peter822145 To Delete The Entry #553
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Dictionary - Python Dictionary - Quiz No.1.
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
d.delete(“john”:40)
d.delete(“john”)
del d[“john”]
del d(“john”:40)