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

9 lines
215 B
Python

>>> x = "foo"
>>> y = ""
>>> if len(x) == 0 and len(y) == 0:
... print("Both strings are empty!")
... else:
... print("At least one of the strings is nonempty.")
...
At least one of the strings is nonempty.