Which statement is used to raise an exception in Python?
Correct answer
B. raise
17 views
B. raise
17 views
The 'raise' statement in Python is used to raise or throw an exception manually. It is often used in conjunction with custom exception classes to handle specific error conditions.
Not sure why the answer is B? Ask here and get an explanation.