title: selecting objects from a dictionary based on value
body: <p>I have a dictionary like:</p>
  
  <pre><code>dd = {"one":"red", "two":"red", "three":"blue", "four":"yellow", "five":"blue"}
  </code></pre>
  
  <p>I would like to create a simple line "if" to go through and select the objects that have a value, let's say "blue".</p>
  
  <p>My attempt:</p>
  
  <pre><code>dd = {"one":"red", "two":"red", "three":"blue", "four":"yellow", "five":"blue"}
  for number in dd:
       if 'blue' in dd.values():
            print("The number "+number+", likes color blue!")
       else:
            print("I'm a number that do not like color blue")
  
  
  
  The number one, likes color blue!
  The number three, likes color blue!
  The number two, likes color blue!
  The number five, likes color blue!
  The number four, likes color blue!
  &gt;&gt;&gt;
  </code></pre>
  
  <p>It's not working.</p>
  
  <p>I'm looking to select just the objects that have value "blue" and print the statement just for them.</p>
  
  <p>Thank you for your help.</p>