my_num = 5
start = True
true_answers = ['yes', '1']
while start:
guess = int(input("Num:"))
if guess == my_num:
print("yes")
start = input("want to repeat?(1 = yes/ 0 = no):").lower() in true_answers
elif guess < my_num:
print("higer!")
else:
print("lower!!!")
print("Good buy my friend :>")
следует указывать только наиболее конкретный тег