title: End of statement expected while using Dot Format
body: <p>I need to print the following of code :</p>
  <pre><code>print('hello &quot;my friend '{}' &quot;'.format(name))
  </code></pre>
  <p>such that the output is:</p>
  <pre><code>'hello &quot;my friend 'ABCD' &quot; '
  </code></pre>
  <p>But I get the error: <code>End of Statement expected</code></p>
  <p>What is the correct syntax?</p>