Match dictionary with list (Python)
<p>I have a dictionary of words with categories. I want to output the categories if the words match the words in my list. This is what my code looks like at the moment: </p>

<pre><code>dictionary = {
    "object" : 'hat',
    "animal" : 'cat',
    "human" : 'steve'
}

list_of_things = ["steve", "tom", "cat"]

for categories,things in dictionary.iteritems():
    for stuff in list_of_things:

        if stuff in things:
            print categories
        if stuff not in things:
            print "dump as usual"
</code></pre>

<p>Currently the output looks like this:</p>

<pre><code>dump as usual
dump as usual
dump as usual
human
dump as usual
dump as usual
dump as usual
dump as usual
animal
</code></pre>

<p>But I want the output to look like this: </p>

<pre><code>human
dump as usual 
animal
</code></pre>

<p>I don't want my list to print everything it iterates through in the dictionary. I only want it to print terms that match. How would I do this? </p>