Write a program called NumberGame. This program should generate a random number between 1 and 10 and save it in a variable. (It should not tell the user what the number is). Then it should ask the user for a guess. The computer should then respond “Too low”, “Too high”, or “Got it!”.
Ideally, the computer will give the user a second guess.
Random Numbers –
Try the following program:
import random print(random.randint(1,10))