circuitpython/tests/float/true_value.py
2021-03-15 19:27:36 +05:30

8 lines
104 B
Python

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