micropython/tests/basics/builtin_abs.py

7 lines
84 B
Python

# test builtin abs
print(abs(False))
print(abs(True))
print(abs(1))
print(abs(-1))