* **Options can be generated dynamically: `f'{<el>:{<str/int>}[…]}'`.**
* **Adding `'!r'` before the colon converts object to string by calling its [repr()](#class) method.**
* **Adding `'='` before the colon prepends the expression to the result.**
### Strings
```python
@ -1393,6 +1394,7 @@ finally:
* **Code inside the `'else'` block will only be executed if `'try'` block had no exceptions.**
* **Code inside the `'finally'` block will always be executed (unless a signal is received).**
* **All variables that are initialized in executed blocks are also visible in all subsequent blocks, as well as outside the try/except clause (only function blocks delimit scope).**
* **To catch signals use `'signal.signal(signal_number, <func>)'` instead.**
<li><strong>Options can be generated dynamically: <codeclass="python hljs"><spanclass="hljs-string">f'<spanclass="hljs-subst">{<el>:{<str/int>}</span>[…]}'</span></code>.</strong></li>
<li><strong>Adding <codeclass="python hljs"><spanclass="hljs-string">'!r'</span></code> before the colon converts object to string by calling its <ahref="#class">repr()</a> method.</strong></li>
<li><strong>Adding <codeclass="python hljs"><spanclass="hljs-string">'='</span></code> before the colon prepends the expression to the result.</strong></li>
<li><strong>Code inside the <codeclass="python hljs"><spanclass="hljs-string">'else'</span></code> block will only be executed if <codeclass="python hljs"><spanclass="hljs-string">'try'</span></code> block had no exceptions.</strong></li>
<li><strong>Code inside the <codeclass="python hljs"><spanclass="hljs-string">'finally'</span></code> block will always be executed (unless a signal is received).</strong></li>
<li><strong>All variables that are initialized in executed blocks are also visible in all subsequent blocks, as well as outside the try/except clause (only function blocks delimit scope).</strong></li>
<li><strong>To catch signals use <codeclass="python hljs"><spanclass="hljs-string">'signal.signal(signal_number, <func>)'</span></code> instead.</strong></li>