title: How to Return a List of Values from a Dictionary?
body: <p>I have created a dictionary that looks like this:</p>
  
  <pre><code>{100000: (400, 'Does not want to build a %SnowMan %StopAsking', ['SnowMan', 'StopAsking'], [100, 200, 300], [400, 500]), 
  100001: (200, 'Make the ocean great again.', [''], [], [400]), 
  100002: (500, "Help I'm being held captive by a beast!  %OhNoes", ['OhNoes'], [400], [100, 200, 300]), 
  100003: (500, "Actually nm. This isn't so bad lolz :P %StockholmeSyndrome", ['StockholmeSyndrome'], [400, 100], []), 
  100004: (300, 'If some random dude offers to %ShowYouTheWorld do yourself a favour and %JustSayNo.', ['ShowYouTheWorld', 'JustSayNo'], [500, 200], [400]), 
  100005: (400, 'LOLZ BELLE.  %StockholmeSyndrome  %SnowMan', ['StockholmeSyndrome', 'SnowMan'], [], [200, 300, 100, 500])}
  </code></pre>
  
  <p>I'm trying to return the list of strings that include a given tag, where my dictionary is of the form <code>{string_id: (user_id, string, tags, likes, dislikes)}</code>.</p>
  
  <p>So far, my code looks like this:</p>
  
  <pre><code>for key, value in mydict.items():
      for items in value:
          if items == value[2]:
              tagged_chirps = [value[1]]
  return tagged_chirps
  </code></pre>
  
  <p>However, when I run this for the tag "SnowMan", the function returns only:</p>
  
  <pre><code>['LOLZ BELLE.  %StockholmeSyndrome  %SnowMan']
  </code></pre>
  
  <p>Instead of what I want it to return, which would be:</p>
  
  <pre><code>['Does not want to build a %SnowMan %StopAsking', 
      'LOLZ BELLE.  %StockholmeSyndrome  %SnowMan']
  </code></pre>
  
  <p>Does anyone know why my function would only be returning one of the strings instead of all the strings desired?</p>