How do you catch incorrect entries? Instead of yes or no the user enters something else?
def weather():
import sys
raining=input('Is it raining? ').lower()
if raining == 'yes':
ask =(input('Do you have an umbrella? ')).lower()
if raining=='no':
print('Go outside 1')
sys.exit(0)
if ask == 'yes':
print('Go outside 2')
sys.exit(0)
while raining == 'yes': # this will ensure, that you do not enter the loop if it's not raining
print('Wait until it stops.')
still=input('Is it still raining? ').lower()
if still =='no':
break
print('Go outside 3!')
weather()