Name some common built-in exceptions in Python.
1 Like
Some common built-in exceptions in Python are NameError, TypeError, ValueError, ZeroDivisionError, AttributeError, KeyError, IndentationError, IOError, IndexError, EOFError, SyntaxError and RuntimeError.
Answered By
What is the difference between an error and exception?
How can you handle an exception in Python? Write sample code to illustrate it.
What does the finally clause produce in a try…except block?
Write syntax of raise statement.