title: How can I extract exact key and its values from a dictionary?
body: <p>I have a list of words that should match some of the keys in the a dictionary. How can I return the matching keys an their values? <br></p>
  <pre><code>terms = ['history', 'patient', 'anotherTerm', ...]
  
  
  dictionary = {'history': ['str1', 'str2', 'str3'], 
                 'clinical': ['str1', 'str2', 'str3'],
                 'patient': ['str1', 'str2', 'str3'], ....}
  </code></pre>
  <p>I did this loop that prints the matching keys, but I'm not sure how to print the key's values as well. How can I make sure to return the key and its list of values?</p>
  <pre class="lang-py prettyprint-override"><code>for c in terms:
          for k in concepts.keys():
              if c == k:
                  print(&quot;key:&quot;, k)  #value?
  </code></pre>