+ 2

Why should I use raise statement instead of print to mention the errors ? In Paython.

I can't understand Why should I use raise statement instead of print to mention the errors ? In Paython.

6th May 2020, 2:10 PM
Ahmed Farag
Ahmed Farag - avatar
1 Antwort
+ 2
Simply put, raise halts the entire program while print just prints. You can check more from here --> https://docs.python.org/3/tutorial/errors.html
6th May 2020, 6:05 PM
shansurat
shansurat - avatar