Question: Python In this assignment, you will be calculating the average number of guesses it takes for someone to guess a randomly-generated number. In a single
Python

In this assignment, you will be calculating the average number of "guesses" it takes for someone to guess a randomly-generated number. In a single run of the program, the following will happen: A random number is generated The user will be asked to guess the number The user will be given feedback (their guess is too low, too high, or correct) If they guess an incorrect number, then they will be given a chance to guess again. (This process will continue until they guess the correct number.) If/when they guess the correct number, then the number of guesses they made will be printed out. The above steps should happen for 5 randomly-generated numbers in the program. Each time the user correctly guesses the number, then the number of guesses should be added to the total number of guesses. After all five "rounds" have been complete (five random numbers, five rounds of guessing), then the program should end, printing out the average number of guesses needed to guess the number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
