title: Python getting a string (key + value) from Python Dictionary
body: <p>I have dictionary structure. For example:</p>
  
  <pre><code>dict = {key1 : value1 ,key2 : value2}
  </code></pre>
  
  <p>What I want is the string which combines the key and the value</p>
  
  <p>Needed string -->> key1_value1 , key2_value2</p>
  
  <p>Any Pythonic way to get this will help.</p>
  
  <p>Thanks </p>
  
  <pre><code>def checkCommonNodes( id  , rs):
       for r in rs:
           for key , value in r.iteritems():
               kv = key+"_"+value
               if kv == id:
                   print "".join('{}_{}'.format(k,v) for k,v in r.iteritems())
  </code></pre>