Guess The Number

This assignment was fun to complete and fun to see if I guessed the correct number. 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.

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”)