Question: For this challenge, you will use the code from Challenge 0 3 and modify it so that the program asks the user the answer to
For this challenge, you will use the code from Challenge and modify it so that the program asks the user the answer to the riddles until they get all correct. If the user answers any of the questions incorrectly, the program should loop through the questions again. Your program should tell the user how many questions they answered correctly, even if they didn't get all questions correct.
Steps to follow:
Ask the user to play a game.
If the user says yes, ask them the first riddle.
If they say no end the program.
If the user guesses any of the riddles incorrectly, repeat the questions until they get all correct.
You could ask them if they want to try again too if you want. That is your choice.
If the user gets all correct, exit the loop and print out a congratulatory message.
Riddle Order must follow this exactly:
Q: What can you hold in your right hand, but never in your left hand? A: Your left hand
Q: What gets wet while drying? A: a towel
Q: What kind of band never plays music? A: A rubber band
Q: What is the end of everything? A: G
Q: When is a door no longer a door? A: When it is ajar
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
