Python (two) control statement

import random
secret = random.randint(1,10)
print("---------------Welcome----------------")

result = False
while(result == False):
tmp = input("Let's guess which lucky number is in awen's mind now?")
guess = int(tmp)

if guess == secret:
print("It's awesome, you I guessed it right the first time!\n")
print("Welcome to come again next time")
result = True
else:
if guess > secret:
print("It's a pity, the guess is too big")
else:
print("Ouch, guess Smaller")
print("Game Over...")

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326311824&siteId=291194637