import random,turtle
s=turtle.getscreen()
turtle.bgcolor("yellow")
turtle.title("Beat the Guessor")
li=random.randint(1,1000)
a=turtle.numinput("prompt","Choose a number between 1 and 10000")
#com=random.choice(li)
turtle.write(f"Computer generated number is {li}\n\n",font=("Arial", 16, "normal"),align="center")
if(a>li):
    turtle.write("You won",font=("Arial", 16, "normal"),align="center")
else:
    turtle.write("You Lose",font=("Arial", 16, "normal"),align="center")