New course! Every coder should learn Generative AI!
Try a free lesson0
An exception handle is not an error, is it?
In the code below, Solo Learn cosiders that two errors occours, however the first exception is handle so it's not a error. try: print(1/0) except ZeroDivisionError: raise ValueError
3 Answers
+ 7
If you handle an exception it isn't an error.
+ 6
However, to handle an exception, you raised an error.
+ 1
if you don't handle the exception they may crash your program