title: How to fix Unterminated expression in f-string; missing close brace in python?
body: <p>I want to use f string formatting instead of print. However, I get these errors:
  Unterminated expression in f-string; missing close brace
  Expected ')'</p>
  <pre><code>var=&quot;ab-c&quot;
  f&quot;{var.replace(&quot;-&quot;,&quot;&quot;)}text123&quot;
  </code></pre>
  <p>I tried to use single quote f'' and also double brackets but neither of them worked. Any idea about how to fix this?</p>