What exception is raised by int('abc') in Python?
Correct answer
C. ValueError
5 views
C. ValueError
5 views
The string cannot be parsed, so ValueError is raised.
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.