Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- border = "==============================="
- print(border)
- hello = input("Hello! How are you today?")
- print(border)
- print("Just "+hello+"? Are you sure about that?")
- hello2 = input("How are you *really* feeling today?")
- print("Okay then, I will remember that you said: "+hello2)
- print("Now let's move on to some riddles...")
- print(border)
- #===============================================#
- # ⚠ NOW CHANGE THE PROGRAM ---> Keep asking until correct answer is given!
- #===============================================#
- answer = "light bulb"
- answer2 = "Bulb"
- answer3 = "light"
- answer4 = "bulb"
- ans = input("It's a hanging pear that you can't eat: ")
- #===============================================#
- # ⚠ Your "if" is now "while"
- #===============================================#
- # ⚠ CONSIDER ALL ANSWERS - bulb, light, Bulb...
- #===============================================#
- while not (ans==answer or ans==answer2 or ans==answer3 or ans==answer4):
- ans = input("Wrong, try again: ")
- print("That's right!")
- ##===============================================#
- # ✨ BONUS: MAKE IT ASK A NEW QUESTION NEXT!
- #===============================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement