+ 3
What is the use of raise statement?
Print(1) raise ValueError Print(2) By using "raise" Statement "print(2)" is not execute . I think there's an exception occurred due to "raise"statement. Am I correct?
1 Resposta
+ 5
Yes I believe it's equivalent to throwing an exception.