Why can't we use two raise statements ?!! | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why can't we use two raise statements ?!!

https://code.sololearn.com/c5A4TUzUOnoi/?ref=app

26th Jul 2019, 8:14 PM
sahana shanbhag
sahana shanbhag - avatar
1 Antwort
+ 2
When you raise the first exception, that immediately terminates execution of the program so the second exception will never run.
26th Jul 2019, 8:16 PM
Faisal
Faisal - avatar