Python Programming - Conditional Statements - Discussion

Discussion Forum : Conditional Statements - General Questions (Q.No. 20)
20.
Which of the following statements is used to raise a custom exception?
assert
throw
raise
custom
Answer: Option
Explanation:
The raise statement is used to raise a custom exception in Python. You can use it to trigger a specific exception with a custom error message.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.