7 lines
136 B
Python
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.
|