Vidyalelo
Python · Q49

MCQs for Python Dictionaries: Exam

Programming · Python · question 49

Q49

What will be the output of the following Python code? a= a[2]=1 a[1]=[2,3,4] print(a[1][1])

A.
[2,3,4]
B.
3
Answer
C.
2
D.
An exception is thrown

Answer: Option B

Solution

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