import random while True: secret_number = random.randint(1, 100) while True: guess = int(input("Enter your guess (between 1 and 100): ")) if guess == secret_number: ("Congratulations! You guessed it correctly!") break elif guess < secret_number: ("Too low! Try again.") else: print("Too high! Try again.") play_again = ("Do you want to play again? (yes/no): ") if play_again.lower() != "yes": break