import random
user_num = int(input ("Enter number: "))
random_number = 0
def random_num():
rand_num = random.randint (1, 10)
return rand_num
temp = True
while temp:
print (random_num())
if user_num == random_num ():
print ("Success")
temp = False
else:
print ("Unsuccess")