Modify with repeated guesses

Log in om je oplossingen te testen.
secret_number = 7 print("Hello, what's your name?") player_name = input() print("Okay " + player_name + ", guess a number between 1 and 10:") guess = int(input()) if guess < secret_number: print("Your guess is too low") elif guess > secret_number: print("Your guess is too high") else: print("Congratulations! You guessed correctly.")