input: Write a python function to search for an element in a list and return the element if found, otherwise return None.
  assert search_in_list([1, 5, 8, 2], 2) == 2
  assert search_in_list([1, 5, 8, 2], 3) == None
  assert search_in_list(['apple', 'banana', 'cherry'], 'banana') == 'banana'
output: def search_in_list(lst, element):
      for item in lst:
          if item == element:
              return item
      return None