What exception is raised when you access a list index that does not exist in Python?
Correct answer
C. IndexError
5 views
C. IndexError
5 views
Out-of-range sequence indexing raises IndexError.
Asked in: Python Interview Exception Handling
https://docs.python.org/3/tutorial/errors.htmlNot sure why the answer is C? Ask here and get an explanation.