Prompt the user to guess your favorite color. Using a while loop, if the user didn't guess your favorite color [pick one for this activity] then tell them they are incorrect, then ask them again. Whenever they guess the color correctly, output that they are correct and how many guesses it took them.

Create a variable and assign it the value of 1
Prompt the user to guess your favorite color
While their guess is not equal to your favorite color
Tell them they are incorrect
Prompt them to guess again
Add one to the variable above
Output to the user, they were correct and how many attempts it took using the variable

Respuesta :

blue is the answer to this

Answer:

Favorite color is blue; Final prompt 5/29= 17%

Explanation:

Person 1: took 8 tries to guess correctly, 1/8 times

Person 2: 1/4 times

Person 3: 1/2 times

Person 4: 1/14 times

Person 5: 1/1 times