Question: PYTHON SYNTAX ONLY Create a function that contains a guess the number game Parameter of the function: (Arguments a and b , which define the
PYTHON SYNTAX ONLY
Create a function that contains a "guess the number" game
Parameter of the function:
(Arguments a and b , which define the interval in which the number lies)
(The maximum number of attempts that the person has to guess the number)
The number to be guessed must be randomly generated by Python.
The function must print "Correct" if the number is guessed correctly, "Incorrect" if the guess is incorrect, and "You lose!" after the maximum number of attepts have been taken.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
