input: Write a python function to check if a number is an integer.
  assert is_integer(5) == True
  assert is_integer(3.14) == False
  assert is_integer('5') == False
output: def is_integer(n):
      return isinstance(n, int)