import random
play = input("Press enter to play: ")
num = str(random.randint(0, 20))
guess = input("Guess number from 0 to 20: ")
while True:
if guess > num:
print("Try a smaller number.")
elif guess < num:
print("Try a bigger number.")
if guess == num:
print("damn you lucky guy!")
break
import random
play = input("Press enter to play: ")
num = random.randint(0, 20)
while True:
guess = int(input("Guess number from 0 to 20: "))
if guess > num:
print("Try a smaller number.")
elif guess < num:
print("Try a bigger number.")
if guess == num:
print("damn you lucky guy!")
break