New GitHub issue #110731 from varun-masuraha:<br>

<hr>

<pre>
Unlike many other languages, blocks in Python do not create a new scope. For instance, variables defined in loops or if statements are available outside of those blocks.
I could not find this information in documentation. Should this be mentioned somewhere, either as a separate topic or perhaps in chapter 9.2 of The Python Tutorial ?
I think it would be useful for people with prior programming experience.

Link to the same thread in discussion board: https://discuss.python.org/t/documentation-about-scope-inside-loops-when-compared-to-c-c/30739
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/110731">View on GitHub</a>
<p>Labels: docs</p>
<p>Assignee: </p>