title: understanding a selector from within a dict
body: <p>For a raw_input sentence I must print out each word and it's type from a dict:</p>
  
  <pre><code>wordDict = {
              "directions": ['north', 'south', 'east', 'west', 'down', 'up', 'left', 'right'],
              "verbs": ['go', 'stop', 'eat', 'kill'],
              "stop_words": ['the', 'in', 'of', 'from', 'at', 'it'],
              "nouns": ['door', 'bear', 'princess', 'cabinet'],
              "numbers": range(10)
              }
  
  stuff = raw_input("Write sentence here &gt; ")
  
  words = stuff.split()
  
  for wds in words:
      print (wordDict[wrd]), wrd
  </code></pre>
  
  <p>So if someone typed in "north go the bear 5" I'd receive output along the lines:</p>
  
  <p>directions: north, verbs: go, stop_words: the, nouns: bear, numbers: 5</p>
  
  <p>This is for a tutorial in Learn Python The Hard Way (exercise 48).</p>
  
  <p>For each word how would I print out it's type and value?</p>