Purpose of raise | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Purpose of raise

What is the additional information that a raise statement in the except block would give?

3rd Sep 2018, 7:54 PM
Lili Kaneva
1 Answer
0
Pretty self-explanatory :) It raises an exception (error) if something happens (you decide what that something will be).
16th Sep 2018, 2:12 AM
Artem Khaiet
Artem Khaiet - avatar