Number Game Program

This lab was fun to do mainly because its fun to play the game and to see if I’ve guessed the right number or not and also because it was fun to create. It was very interesting to see that by inputting a module such as the random module, the computer picks any number and you can guess that number. Overall, the lab was very fun and interesting to do.

input (“Take a guess at what the number might be! “)
import random
hint = x < (random.randint(1,100)) < x
x = (random.randint(1,100))
if x > (random.randint(1,100)):
print (“Too high, please try again”)
elif x < (random.randint(1,100)):
print (“Too low, please try again”)
else:
print (“Congratulations you have guessed the number”)