circuitpython/tests/float/int_divzero.py

10 lines
145 B
Python

try:
1 / 0
except ZeroDivisionError:
print("ZeroDivisionError")
try:
0**-1
except ZeroDivisionError:
print("ZeroDivisionError")