Vidyalelo
Python · Q60

MCQs for Python Dictionaries: Exam

Programming · Python · question 60

Q60

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board