Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
Posted: Wed Jul 13, 2022 7:45 pm
a) d.delete(“john”:40)
b) d.delete(“john”)
c) del d[“john”]
d) del d(“john”:40)
b) d.delete(“john”)
c) del d[“john”]
d) del d(“john”:40)