input: Write a function to check if a number is within the range of 1 to 10 (inclusive). If the number is within this range, the function should return True; otherwise, it should return False. If the input number is None or is not a number, the function should return False.
  assert check_number(5)==True
  assert check_number(10)==True
  assert check_number(11)==False
  assert check_number(1)==True
  assert check_number(None)==False
  assert check_number("a")==False
output: def check_number(num):
      if num is None or not isinstance(num, (int, float)):
          return False
      return 1 <= num <= 10