title: python list comprehension without in
body: <p>if <strong><em>flattend</em></strong> is just a list of strings, for example</p>
  
  <pre><code>['There','is','only','passion','and','piece','is','a','lie','lie','lie']
  </code></pre>
  
  <p>then in following two lines</p>
  
  <pre><code>c = Counter(flattened)
  vocab = [x for x, count in c.items() if count&gt;=2]
  </code></pre>
  
  <p>what does the part [x for x,...] mean? also, shouldn't <strong><em>count</em></strong> be of type tuple as i suppose it is a counter item? how come this part <code>count&gt;=2</code> work?!</p>
  
  <p>Note:
  I understand from debugging that the first line converts the list into a counter and the second one removes the items that occurred less than twice. but i can't really interpret the syntax</p>