Explanation:Execute in the shell to verify. 7. Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use
A. d.delete(“john”:40)
B. d.delete(“john”)
C. del d[“john”]
D. del d(“john”:40)
Answer:A
Explanation:Execute in the shell to verify. 7. Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use
A. d.delete(“john”:40) B. d.delete(“john”) C. del d[“john”] D. del d(“john”:40)
Explanation:Execute in the shell to verify.