python-by-example-150-chall.../challenges12-19/challenge-016.py
2019-07-17 09:56:46 +03:00

12 lines
314 B
Python

answer = str(input('is it raining? yes|no : '))
answer = answer.lower()
if answer == 'yes':
windy = str(input('is it windy! yes|no : '))
windy = windy.lower()
if windy == 'yes':
print('It is too windy for umbrella')
else:
print('Take an umbrella')
else:
print('Enjoy your day')