2022-11-13 10:39:28 -08:00

7 lines
136 B
Python

>>> if not (len(x) == 0): # Not Pythonic
... print("x is not empty.")
... else:
... print("x is empty.")
...
x is not empty.