python-by-example-150-chall.../challenges12-19/challenge-016.py

12 lines
314 B
Python
Raw Normal View History

2019-07-17 14:56:46 +08:00
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')