mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
12 lines
161 B
Python
12 lines
161 B
Python
|
# 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)
|