Could someone please explain the difference between -
def f():
try:
print('A', end=' ')
raise ArithmeticError
except:
print('B', end=' ')
raise AssertionError
finally:
print('C', end=' ')
return
And
def f():
try:
print('A', end=' ')
raise ArithmeticError
except:
print('B', end=' ')
raise AssertionError
finally:
print('C', end=' ')
return
The first code block does not raise any exceptions and print "A B C" while the second code block raises both exceptions and prints "A B C".