circuitpython/tests/basics/bool1.py

12 lines
161 B
Python
Raw Normal View History

# tests for bool objects
# basic logic
print(not False)
print(not True)
print(False and True)
print(False or True)
# unary operators
print(+True)
print(-True)