micropython/tests/float/true_value.py

8 wiersze
104 B
Python

# Test true-ish value handling
if not 0.0:
print("float 0")
if not 0 + 0j:
print("complex 0")