title: Equivalent implementation using f-strings and eval
body: <pre><code>x = type.__dict__
  x is x
  </code></pre>
  <p>gives,</p>
  <pre><code>True
  </code></pre>
  <p>but,</p>
  <pre><code>x = type.__dict__
  operator = 'is'
  eval(f'{x} {operator} {x}')
  </code></pre>
  <p>gives,</p>
  <pre><code>SyntaxError: invalid syntax
  </code></pre>
  <p>even,</p>
  <pre><code>operator = 'is'
  eval(f'{x!r} {operator} {x!r}')
  </code></pre>
  <p>gives,</p>
  <pre><code>SyntaxError: invalid syntax
  </code></pre>
  <p>how to get <code>True</code> as output using eval and f-strings?</p>