input: Write a python function to get user input between 1 and 10 and handle invalid inputs.
  assert get_input() in range(1, 11)
output: def get_input():
      while True:
          try:
              user_input = int(input("Enter a number between 1 and 10: "))
              if 1 <= user_input <= 10:
                  return user_input
              else:
                  print("Invalid input. Please enter a number between 1 and 10.")
          except ValueError:
              print("Invalid input. Please enter a valid number.")