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