title: Python Dictionary to URL Parameters
body: <p>I am trying to convert a Python dictionary to a string for use as URL parameters. I am sure that there is a better, more <a href="http://en.wikipedia.org/wiki/Pythonic" rel="noreferrer">Pythonic</a> way of doing this. What is it?</p>
  
  <pre><code>x = ""
  for key, val in {'a':'A', 'b':'B'}.items():
      x += "%s=%s&amp;" %(key,val)
  x = x[:-1]
  </code></pre>