input: Write a function to convert a string to an integer using try/except statements to handle potential ValueError exceptions.
  assert convert_to_int('123') == 123
  assert convert_to_int('456') == 456
  assert convert_to_int('A123') is None
output: def convert_to_int(s):
      try:
          return int(s)
      except ValueError:
          return None