<reponame>eengineergz/Lambda
import random

def guessing_game():
  print("Guess the number!")

  secret_number = random.randrange(101)

  while True:
    guess = input("Input your guess: ")
    
    try:
      guess = int(guess)
    except ValueError:
      print("Please enter an integer.")
      continue

    print(f"You guessed: {guess}")

    if guess == secret_number:
      print("You win!")
      break
    elif guess < secret_number:
      print("Too small!")
    else:
      print("Too big!")

if __name__ == '__main__':
  guessing_game()
import random

def guessing_game():
  print("Guess the number!")

  secret_number = random.randrange(101)

  while True:
    guess = input("Input your guess: ")
    
    try:
      guess = int(guess)
    except ValueError:
      print("Please enter an integer.")
      continue

    print(f"You guessed: {guess}")

    if guess == secret_number:
      print("You win!")
      break
    elif guess < secret_number:
      print("Too small!")
    else:
      print("Too big!")

if __name__ == '__main__':
  guessing_game()