micropython/tests/float/int_divzero.py

10 wiersze
145 B
Python

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