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