input: Write a python function to produce a new list containing substrings from the given list.
  assert produce_new_list(["abc", "de"]) == ["a", "ab", "abc", "d", "de"]
  assert produce_new_list(["hello", "world"]) == ["h", "he", "hel", "hell", "hello", "w", "wo", "wor", "worl", "world"]
  assert produce_new_list(["test", "data"]) == ["t", "te", "tes", "test", "d", "da", "dat", "data"]
output: def produce_new_list(lst):
      result = []
      for word in lst:
          for i in range(1, len(word) + 1):
              result.append(word[:i])
      return result