Improve the following Python code to check if a number is in the range of 1 to 10 (inclusive).
def check_number(num):
if num >= 1 and num <= 10:
   return True
def check_number(num):
  if (num > 0 and num < 11):
    return True
  else:
    return False