Name some common built-in exceptions in Python.
2 Likes
Some common built-in exceptions in Python are NameError, TypeError, ValueError, ZeroDivisionError, AttributeError, KeyError, IndentationError, IOError, IndexError, EOFError, SyntaxError and RuntimeError.
Answered By
1 Like
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.