Vidyalelo
Python · Q41

Exception Handling in Python

Programming · Python · question 41

Q41

What will be the output of the following Python code? lst = [1, 2, 3] lst[3]

A.
NameError
B.
ValueError
C.
IndexError
Answer
D.
TypeError

Answer: Option C

Solution

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