Examveda

What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"}
a.clear()
print(a)

A. None

B. { None:None, None:None, None:None}

C. {1:None, 2:None, 3:None}

D. { }

Answer: Option D


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python