01 / 07
When an error appears, that is where it stops
Until now an error has been something you fix. But things can also fail for reasons other than a mistake in your typing — a number arriving from outside that is not a number, a field that ought to be there and is not.
When an error happens, the program stops on that line. None of the lines after it run. Notice that end never appears below.
print("start")print(10 / 0)print("end")Result
start ZeroDivisionError: division by zero