Purpose of raise | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
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