Exceptions and raises | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок

Exceptions and raises

What are the differences between exceptions and raises?

9th Aug 2020, 2:12 AM
ronald - avatar
1 ответ
+ 3
raise is for raising intentional errors. usefull for custom errors ones you might make. except is for catching unintentional errors. maybe for something random like user input. all of these are paired with try.
9th Aug 2020, 2:16 AM
Randomocity - avatar