title: Using join() on dictionary in python to return key value pairs as one long string
body: <p>I want to <code>join()</code> key and value pairs in a my dictionary with a <code>:</code> inbetween. I want to return it all as one string.</p>
  
  <p>Intuitivly I hoped just plugging the dictionary in would work:</p>
  
  <pre><code>def format_grades(grades):
  
  
      return ': '.join(grades) + "\n" 
  </code></pre>
  
  <p>I tried something like this <code>': '.join(str(n) for n in grades[n])</code> to convert my values to strings since my dict looks like this: <code>{john: 2}</code> but I can't think straight now, ideas?</p>