title: How to apply a function to each sublist of a list in python?
body: <p>Lets say I have a list like this:</p>
  
  <pre><code>list_of_lists = [['how to apply'],['a function'],['to each list?']]
  </code></pre>
  
  <p>And I have a function let's say I want to apply the <code>F</code> function to each sublist of the <code>F</code> function can compute some score about two lists. How can apply this <code>F</code> function to each list of <code>list_of_lists</code> and return each score in a new list like this:</p>
  
  <pre><code>new_list = [score_1, score_2, score_3]
  </code></pre>
  
  <p>I tried with the <code>map</code> function the following:</p>
  
  <pre><code>map(F, list_of_lists).append(new_list)
  </code></pre>