Finish your program · in code: Where a Program Ends
Where the program finishes.
Open it in the editor, press Run, then change it and run it again.
answerlower(answer) == "yes" true?Yes →
"Take an umbrella"No →
"Enjoy the sun""Bye!"yesIt showsTake an umbrellaBye!noIt showsEnjoy the sunBye!answer = input("Is it raining? (yes or no) ")if answer.lower() == "yes": print("Take an umbrella")else: print("Enjoy the sun")print("Bye!")