Vidyalelo
Python · Q36

Exception Handling in Python

Programming · Python · question 36

Q36

What is the syntax to raise an exception manually in Python?

A.
raise Exception("Message")
Answer
B.
throw Exception("Message")
C.
throw("Message", Exception)
D.
exception("Message")

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board