how to write an if else in python code example
Example: python or in if statement
weather = input("How's the weather? ")
if weather == "Good!" or weather == "Great!":
print('Glad to hear!')
else:
print('Too bad!')
weather = input("How's the weather? ")
if weather == "Good!" or weather == "Great!":
print('Glad to hear!')
else:
print('Too bad!')