Question: Make a loop to keep asking a user to guess a number between 1 & 1 0 . The user will have 3 guesses. If

Make a loop to keep asking a user to guess a number between 1 & 10. The user will have 3 guesses. If the user guesses the right number tell them they won the game. If the user doesn't guess the right number in 3 guesses tell them they lost the game. Setting the number of guesses and picking a random number as the number to guessimport randomguesses =3number = random.randint(1,10)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!