Computer Science
Write syntax of raise statement.
Python Exception Handling
2 Likes
Answer
The syntax of raise statement is:
raise[exception name [, message/argument][, traceback]]
Answered By
2 Likes
Related Questions
Name some common built-in exceptions in Python.
What does the finally clause produce in a try…except block?
Differentiate between IOError and IndexError.
Show how to modify the following code so that an error is printed if the number conversion is not successful:
val = input("Enter a number") pval = int(val)