title: Why is f'{{{74}}}' the same as f'{{74}}' with f-Strings?
body: <p><a href="https://www.python.org/dev/peps/pep-0498/" rel="noreferrer">f-Strings</a> are available from Python 3.6 and are very useful for formatting strings:</p>
  
  <pre><code>&gt;&gt;&gt; n='you'
  &gt;&gt;&gt; f'hello {n}, how are you?'
  'hello you, how are you?'
  </code></pre>
  
  <p>Reading more about them in <a href="https://realpython.com/python-f-strings/" rel="noreferrer">Python 3's f-Strings: An Improved String Formatting Syntax (Guide)</a>. I found an interesting pattern:</p>
  
  <blockquote>
    <p>Note that using triple braces will result in there being only single braces in your string:</p>
  
  <pre><code>&gt;&gt;&gt; f"{{{74}}}"
  '{74}'
  </code></pre>
    
    <p>However, you can get more braces to show if you use more than triple braces:</p>
  
  <pre><code>&gt;&gt;&gt; f"{{{{74}}}}"
  '{{74}}'
  </code></pre>
  </blockquote>
  
  <p>And this is exactly the case:</p>
  
  <pre><code>&gt;&gt;&gt; f'{74}'
  '74'
  
  &gt;&gt;&gt; f'{{74}}'
  '{74}'
  </code></pre>
  
  <p>Now if we pass from two <code>{</code> to three, the result is the same:</p>
  
  <pre><code>&gt;&gt;&gt; f'{{{74}}}'
  '{74}'           # same as f'{{74}}' !
  </code></pre>
  
  <p>So we need up to 4! (<code>{{{{</code>) to get two braces as an output:</p>
  
  <pre><code>&gt;&gt;&gt; f'{{{{74}}}}'
  '{{74}}'
  </code></pre>
  
  <p>Why is this? What happens with two braces to have Python require an extra one from that moment on?</p>