title: Iterating through a python dictionary with lists as values
body: <p>I'm trying to iterate through a dictionary that looks like:</p>
  
  <pre><code>    d = {
      "list_one": [
          "hello",
          "two",
          "three"
      ],
      "list_two": [
          "morning",
          "rain"
      ]
  }
  </code></pre>
  
  <p>I'm using the function:</p>
  
  <pre><code>def combine_words(d):
      for k, v in d.items():
          a = {k: ("|".join(v))}
      return a
  </code></pre>
  
  <p>When I run this with print, my output is just one key, value pair. I'm not sure what is happening here. My ideal out put would be:</p>
  
  <pre><code>{
  'list_one': 'hello|two|three',
  'list_two': 'morning|rain'
  }
  </code></pre>