input: Write a python function to convert a list of strings to a list of integers, ignoring non-integer values.
  assert convert_to_ints(['1', '2', '3', 'four', '5']) == [1, 2, 3, 5]
  assert convert_to_ints(['10', 'twenty', '30', 'forty', '50']) == [10, 30, 50]
  assert convert_to_ints(['0', '-1', '2.5', 'three', '4']) == [0, -1, 4]
output: def convert_to_ints(lst):
      result = []
      for item in lst:
          try:
              result.append(int(item))
          except ValueError:
              continue
      return result