Examveda
Examveda

What method is used to check if a key exists in a dictionary, and if not, add it with a default value?

A. setdefault()

B. addkey()

C. insert()

D. newkey()

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python