title: Most elegant way to format multi-line strings in Python
body: <p>I have a multiline string, where I want to change certain parts of it with my own variables. I don't really like piecing together the same text using <code>+</code> operator. Is there a better alternative to this?</p>
  
  <p>For example (internal quotes are necessary):</p>
  
  <pre><code>line = """Hi my name is "{0}".
  I am from "{1}".
  You must be "{2}"."""
  </code></pre>
  
  <p>I want to be able to use this multiple times to form a larger string, which will look like this:</p>
  
  <pre><code>Hi my name is "Joan".
  I am from "USA".
  You must be "Victor".
  
  Hi my name is "Victor".
  I am from "Russia".
  You must be "Joan".
  </code></pre>
  
  <p>Is there a way to do something like:</p>
  
  <pre><code>txt == ""
  for ...:
      txt += line.format(name, country, otherName)
  </code></pre>