Question: Python 2.7.11 Write a function called Guess_Win which asks user to guess a generated random number between 1 and 10. Display following messages based on
Python 2.7.11

Write a function called "Guess_Win" which asks user to guess a generated random number between 1 and 10. Display following messages based on user input. If user input is less than the generated random number: Too low! If user input is greater than the generated random number: Too high! If user input is same as the generated random number: That s it! Steps of Guess_Win function can be given as follows: def Guess_Win(): Generate a random number between 1 and 10. Display the message "Try to guess a number between 1 and 10". Get the first guess from user. while user guess is not equals to the generated random number do, If user input is less than the generated random number, display Too low! If user input is greater than the generated random number, display Too high! Get the next guess from user. Display That's it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
