Question: Create a simple guess the number game in a program called guess.py. Generate a random number between 1 and 10 and then ask the user

 Create a simple "guess the number" game in a program called

Create a simple "guess the number" game in a program called guess.py. Generate a random number between 1 and 10 and then ask the user to guess it; let the user know if their guess was high, low, or correct. Keep repeating until they correctly guess the number. Note: to generate a random number, see the randint() function in zyBooks 5.3.2. Don't forget to import random. If you have trouble getting this to work, you can skip the "randomness" and just pick a number to be guessed

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!