Код: Выделить всё
weather = input("How's the weather? ")
if weather == "Good!" or "Great!":
print("Glad to hear!")
else:
print("That's too bad!")
Подробнее здесь: https://stackoverflow.com/questions/484 ... ent-python
Код: Выделить всё
weather = input("How's the weather? ")
if weather == "Good!" or "Great!":
print("Glad to hear!")
else:
print("That's too bad!")