title: Write a function that takes as a parameter a list of strings and returns a list containing the lengths of each of the strings
body: <p>WHOLE QUESTION: Write a function that takes as a parameter a list of strings and returns a list containing the lengths of each of the strings. That is, if the input parameter is ["apple pie", "brownies","chocolate","dulce de leche","eclairs"], your function should return [9, 8, 9, 14, 7].</p>
  
  <p>I approached this program using an "accumulator" where I would accumulate lists.</p>
  
  <p>My program:</p>
  
  <pre><code>def accumulating():
    List = []
    Strings = input("Please enter a list of strings: ")
    List = Strings.split(" ")
    return List
  
  def length(n):
    r = []
    for i in n:
      r.append(len(n))
    return r
  
  def main():
    y = accumulating()
    x = length(y)
    print(x)
  
  main()
  </code></pre>