Purpose of raise | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
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