circuitpython/tests/basics/andor.py
2014-08-29 20:05:32 +01:00

6 lines
123 B
Python

# test short circuit expressions outside if conditionals
print(() or 1)
print((1,) or 1)
print(() and 1)
print((1,) and 1)