What does this line of python mean?
<p>Hey if you look at the following code (that works)</p>

<pre><code>old = 0
new = 2
sel = 4
print 'OnPageChanged,  old:%d, new:%d, sel:%d\n' % (old, new, sel)
</code></pre>

<p>It doesnt really make any sense, how can you use mod on a string? And how does (old, new, sel) work. Also, why is the person putting %d in the string?</p>

<p>Sorry if this isn't in the right place, I didn't know where else to ask this question.</p>

<p>Thanks to anyone who reads.</p>
