title: python match lists
body: <p>Removing supersets when sublists are compared with other sublists in a list_of_lists</p>
  
  <p>Input:</p>
  
  <pre><code>  my_list = [['cat','bat'],['sat','rat','mat'],['cat','bat','hat'],['pat','mat']]
  </code></pre>
  
  <p>Here ['cat', 'bat'] is a subset of ['cat', 'bat', 'hat'] So I need to remove the superset ['cat', 'bat', 'hat'] from my_list</p>
  
  <p>Desired Output should be:</p>
  
  <pre><code>  my_new_list = [['cat','bat'],['sat','rat','mat'],['pat','mat']]
  </code></pre>
  
  <p>I found a similar thread but could not implement the same code for comparing sublists with one another. Can anyone help me with this?</p>
  
  <pre><code>  def match(my_list[],my_list[]):
         matches = set(my_list[]).issuperset()
         return [remove(my_list[]) for sublist in my_list if matches (sublist)]
  </code></pre>