Raise ?!?!?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Raise ?!?!?!

I didn't understand "raise" :/

8th Dec 2018, 4:59 PM
ANTIDOTE
ANTIDOTE - avatar
3 Answers
+ 2
using raise you force a specified exception to occur consider the following program where an exception is raised even if the if condition is true : x=10 if(x>1): raise Exception("this is your exception")
8th Dec 2018, 6:08 PM
Rishi Anand
Rishi Anand - avatar
+ 3
You use raise to make the program quit with an error that you can specify
8th Dec 2018, 5:55 PM
Julian
Julian - avatar
0
ok thank u guys
10th Dec 2018, 8:55 PM
ANTIDOTE
ANTIDOTE - avatar