title: Searching for value in dictionary and return a new dictionary with the corresponding key and value
body: <p>So lets say I have this dictionary of preschool kids. The key is the names and the values represent : favorite color, age, and hair color. </p>
  
  <pre><code>    preschool_kids={"Suzie":("purple", 4, "brown"), 
  "Michael":("blue", 3, "blond"), "Jane":("purple",5, "black")}
  </code></pre>
  
  <p>So I'm testing to see which of these student's favorite color is purple, and wanting the following output: </p>
  
  <pre><code>{"Suzie":("purple", 4, "brown"),"Jane":("purple",5, "black")}
  </code></pre>
  
  <p>I've done the following (using dictionary above)trying to get that result:</p>
  
  <pre><code>def search(values, color):
      d={}
      for key,value in preschool_kids.items():
          colors=value[0]
  
          if color in colors:
              d= (key, value)
              print(d)
  
  print (search(preschool_kids, "purple")) 
  </code></pre>
  
  <p>but instead I keep coming out with :</p>
  
  <pre><code>('Suzie', ('purple', 4, 'brown'))
  ('Jane', ('purple', 5, 'black'))
  </code></pre>
  
  <p>How can I get it to form a new dictionary with the search results from my code instead of a tuple? It definitely seems to be giving me the right things I'm asking for, but just not in the output I want.</p>
  
  <p>Also, since I'm quite new to Python, I'd rather not import things, since I don't have much experience or full understanding of the different imported libraries.</p>