title: What's the appropriate syntax for this dictionary comprehension fully written out?
body: <p>I'm trying to debug some code that includes a dictionary comprehension. Just want to make sure I have this correct and that I add a print line to view the <code>key</code>s as well. Here's the comprehension one-liner:</p>
  <pre><code>gooditems = {key: value for key, value in row.items() if key in fields}
  </code></pre>
  <p>Thinking of adding the following to view keys:</p>
  <pre><code>for key, value in row.items():
      print(key,value)
  </code></pre>
  <p>Is it as easy as that?</p>