title: Python conditional statements in f-string with format specifiers
body: <p>In this code snippet:</p>
  <pre><code>b = False
  print(f'{a if b else &quot;&quot;}')
  </code></pre>
  <p>I would like to use format specifier for <code>a</code>, e.g. <code>a:.2f</code>. None of these work with Python 3.10:</p>
  <pre><code>print(f'{a:.2f if b else &quot;&quot;}')
  print(f'{(a:.2f) if b else &quot;&quot;}')
  print(f'{{a:.2f} if b else &quot;&quot;}')
  </code></pre>
  <p>What is the solution?</p>
  <hr />
  <p>I would like to keep the conditional inside f-string, since there will be a few of them in different places in a multiline string.</p>