Vidyalelo
Python · Q41

MCQs for Python Dictionaries: Exam

Programming · Python · question 41

Q41

What will be the output of the following Python code? >>> a=dict() >>> a[1]

A.
An exception is thrown since the dictionary is empty
Answer
B.
' '
C.
1
D.
0

Answer: Option A

Solution

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