micropython/tests/basics/andor.py

6 wiersze
123 B
Python
Czysty Zwykły widok Historia

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