PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
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)
Show Answer
Next Question
Correct Answer:
C
Explanation: Execute in the shell to verify.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap