String formatting: string specifier in a string constant
<p>Is there a way to insert a string in a string constant/variable that contains a string specifier?</p>

<p>Example:</p>

<pre><code>temp_body = 'Hello %s, please visit %s to confirm your registration.'
body = temp_body % (name, url)
</code></pre>

<p>But this raises a TypeError. </p>
