Vidyalelo
Python · Q19

Exception Handling in Python

Programming · Python · question 19

Q19

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