0

How can I write a code so that if I answer because of or because you or whatever close to the because will output oh okay.Tnx

Three Year-Old Simulator # Demonstrates the while loop print("\tWelcome to the 'Three-Year-Old Simulator'\n") print("This program simulates a conversation with a three-year-old child.") print("Try to stop the madness.\n") response = "" while response != "Because.": response = input("Why?\n") print("Oh. Okay.") input("\n\nPress the enter key to exit.")

13th May 2018, 1:11 PM
jeste
1 ответ
+ 2
This works. https://code.sololearn.com/crwgtg5k16n7 I used this input: hi why not oh because I said so bye
14th May 2018, 1:09 AM
John Wells
John Wells - avatar