input: Write a python function to check if a given string can be converted to an integer.
  assert is_int("123") == True
  assert is_int("abc") == False
  assert is_int("456.789") == False
  assert is_int("0") == True
output: def is_int(s):
      try:
          int(s)
          return True
      except ValueError:
          return False