+ 1
why this exception code not running I'm confused !!
2 Answers
+ 7
you need to indent line 7
0
try:
print("Hello")
print(1 / 0)
except ZeroDivisionError:
print("Divided by zero")
print (blabla)
raise NameError ("invalid name")
finally:
print("This code will run no matter what")