Strange string concatenation on Python 2.5 in Windows
<p>This code -</p>

<pre><code>for ss_key in sd.keys():
    print str(sd[ss_key]) + ' ' + ss_key
</code></pre>

<p>prints the output as expected i.e. converts the int value of ss_key and prints the value and key on the same line.</p>

<p>But this code - </p>

<pre><code>for ii_key in id.keys():
    print ii_key + ' ' + str(id[ii_key]),
</code></pre>

<p>prints key1 and then goes to a newline to print the value of key1 then key2 and goes to another new line to print value of key2.</p>

<p>Any pointers on this weird behaviour and how I can get the string concatenation right with key first and then value, Thanks a lot in advance.</p>
