input: Write a python function to simulate a guessing game where the user tries to guess a randomly generated number between 1 and 10.
  assert guessing_game(5, 5) == "You got it!"
  assert guessing_game(7, 3) == "Try again."
  assert guessing_game(1, 1) == "You got it!"
output: import random
  
  def guessing_game(user_guess, number_to_guess=None):
      if number_to_guess is None:
          number_to_guess = random.randint(1, 10)
      if user_guess == number_to_guess:
          return "You got it!"
      else:
          return "Try again."