How to format a multi line string with triple quotes inside using Python?
<p>I couldn't find this online but basically I have a string like this:</p>

<pre><code>s = "name={0},
address={1},
nickname={2},
age={3},
comments=
"""
{4}
"""
"
</code></pre>

<p>and I need to format this string as is using variables like so:</p>

<pre><code>s.format("alice", "N/A", "alice", 18, "missing person")
</code></pre>

<p>I can't change the triple quotes there because the program that will use my string expects that, otherwise won't work.</p>

<p>How can I have this string declared/escaped correctly?</p>