title: Filter out a list from list of lists in python
body: <p>I am new to python and I am trying to compare elements of a list with elements of list of lists.</p>
  
  <p>I have a list and a list of lists with different combination of same courses (each list is a different topological sort)</p>
  
  <p>The <code>list_of_lists</code> in some cases is huge. 
  What I want to do is to compare the <code>courses_taken</code> list with the <code>list_of_lists</code> and take as a result the non-common elements of each list, for example:</p>
  
  <pre><code># the small list:
  courses_taken = ['CS350','CS450']
  
  # a list of lists:
  list_of_lists =[['CS450', 'CS350', 'CS300', 'CS206', 'CS306'], ['CS450', 'CS350', 'CS206', 'CS306', 'CS300'], ['CS450', 'CS350', 'CS206', 'CS300', 'CS306'],...]
  
  # the result:
  result = [['CS300', 'CS206', 'CS306'], ['CS206', 'CS306', 'CS300'], [ 'CS206', 'CS300', 'CS306']]
  </code></pre>
  
  <p>From the research I did I found only ways to compare the courses_taken with a sublist and not each specific elements in order to return the non-common ones. Also, I found ways to compare 2 lists but the same code would not work for this case. </p>