input: Write a python function to iterate through a list and print each element.
  assert my_function([1, 2, 3]) == "1\n2\n3\n"
  assert my_function(['a', 'b', 'c']) == "a\nb\nc\n"
  assert my_function([True, False, None]) == "True\nFalse\nNone\n"
output: def my_function(lst):
      result = ""
      for element in lst:
          result += str(element) + "\n"
      return result