python guess the number code example
Example: how to do guess the number in python
import random
hidden = random.randrange(1, 201)
print(hidden)
guess = int(input("Please enter your guess: "))
if guess == hidden:
print("Hit!")
elif guess < hidden:
print("Your guess is too low")
else:
print("Your guess is too high")