title: Convert a string with curly brackets using python
body: <p>I have the following string:</p>
  
  <pre><code>{At condition {0}, the value of {1} must be between {2} and {3}.}{{code{min &lt;= 100}}}{{code{min}}}{0}{100}
  </code></pre>
  
  <p>How to convert any similar string to the below format in python?</p>
  
  <pre><code>At condition `min &lt;= 100`, the value of `min` must be between 0 and 100.
  </code></pre>
  
  <p>Numbers in curly brackets should be replaced by the corresponding values. If a value is wrapped into <code>{code{value}}</code>, dedicated symbols `` should be added.</p>