a) d.delete(“john”:40)
b) d.delete(“john”)
c) del d[“john”]
d) del d(“john”:40)
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!