input: Write a function to check if a number is within the inclusive range of 1 to 10. If the number is in this range, return True; otherwise, return False. Additionally, handle the case where the number is exactly 1 or 10 by returning True for these cases as well.
  assert check_number(5)==True
  assert check_number(1)==True
  assert check_number(10)==True
  assert check_number(11)==False
  assert check_number(0)==False
output: def check_number(num):
      return num >= 1 and num <= 10