title: list comprehension on a dictionary giving empty list
body: <p>I have a dictionary as below :</p>
  
  <pre><code> 'give': (('VBP', 6), ('VB', 15)),
   'discounts': ('NNS', 1),
   'maintaining': ('VBG', 4),
   'increasing': ('VBG', 18),
   'spending': (('NN', 24), ('VBG', 2)),
   'become': ((('VBN', 7), ('VB', 15)), ('VBP', 1)),
   'permanent': ('JJ', 2),
   'fixtures': ('NNS', 1),
   'news': ('NN', 24),
   'weeklies': ('NNS', 2),
   'underscore': ('VBP', 1),
   'fierce': ('JJ', 2),
   'competition': ('NN', 10)
  </code></pre>
  
  <p>I am writing a list comprehension as below :</p>
  
  <pre><code>result = [x for x in mydict.items() if type(x[1][0]) == 'str']
  </code></pre>
  
  <p>But this results in an empty list, whereas if I see there are many elements in dictionary, for which this condition satisfies.</p>