Question: For this exercise, you will create a class called GuessGame with several steps: Create a class called GuessGame. The class should not take any user
For this exercise, you will create a class called GuessGame with several steps:
Create a class called GuessGame.
The class should not take any user inputs or arguments upon instantiation initialization
In the init method, set a self.randchoice attribute to a random integer between and using the random module, import random
Create a method in the class called resetrandom that will reset the self.randchoice attribute to a new random integer between and
Create a method called guess that uses the input function to accept a user's guess for the random number. This method should print out a statement indicating whether or not the user's guess was correct.
Please always run examples to check
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
