title: Comparing Multiple Lists Python
body: <p>I'm trying to compare multiple lists. However the lists aren't label...normally. I'm using a while loop to make a new list each time and label them accordingly. So for example, if the while loop runs 3 times it will make a <code>List1</code> a <code>List2</code> and <code>List3</code>. Here is then snippet of the code to create the list.</p>
  
  <pre><code>for link in links:
      print('*', link.text)
      locals()['list{}'.format(str(i))].append(link.text)
  </code></pre>
  
  <p>So I want to compare each list for the strings that are in them but I want to compare all the lists at once then print out the common strings. </p>
  
  <p>I feel like I'll be using something like this, but I'm not 100% sure.</p>
  
  <pre><code>lists = [list1, list2, list3, list4, list5, list6, list7, list8, list9, list10]
  common = list(set().union(*lists).intersection(Keyword))
  </code></pre>