circuitpython/tests/basics/builtin_abs.py

7 lines
84 B
Python
Raw Normal View History

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