title: Python 3 f-string alternative in Python 2
body: <p>Mostly I work with Python 3. There can I write this:</p>
  <pre><code>print(f&quot;The answer is {21 + 21}!&quot;)
  </code></pre>
  <p>Output:</p>
  <blockquote>
  <p>The answer is 42!</p>
  </blockquote>
  <p>But in Python 2, <a href="https://en.wikipedia.org/wiki/Python_(programming_language)#Expressions" rel="nofollow noreferrer">f-strings</a> do not exist. So is the following the best way?</p>
  <pre><code>print(&quot;the answer is &quot; + str(21 + 21) + &quot;!&quot;)
  </code></pre>