6ded55a61f
"1/0" is sacred idiom, the shortest way to break program execution (sys.exit() is too long).
10 lines
146 B
Python
10 lines
146 B
Python
try:
|
|
1 / 0
|
|
except ZeroDivisionError:
|
|
print("ZeroDivisionError")
|
|
|
|
try:
|
|
1 // 0
|
|
except ZeroDivisionError:
|
|
print("ZeroDivisionError")
|