Examveda

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: Option C


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python