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

7 lines
169 B
Python

>>> if x or y:
... print("At least one of the strings is nonempty.")
... else:
... print("Both strings are empty!")
...
At least one of the strings is nonempty.