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




DigitalOcean Referral Badge

© 2022-2023 Python Circle   Contact   Sponsor   Archive   Sitemap