circuitpython/tests/float/int_divzero.py

10 lines
147 B
Python

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