Python Scope & the LEGB Rule: Resolving Names in Your Code – Real Python
In this step-by-step tutorial, you'll learn what scopes are, how they work, and how to use them effectively to avoid name collisions in your code. Additionally, you'll learn how to take advantage of a Python scope to write more maintainable and less buggy code.
Python Scope and the LEGB Rule: Resolving Names in Your Code – Real Python — FREE Email Series — 🐍 Python Tricks 💌 Get Python Tricks » 🔒 No spam. Unsubscribe any time. Browse Topics Guided Learning Paths Basics Intermediate Advanced ai algorithms api best-practices career community databases data-science data-structures data-viz devops django docker editors flask front-end gamedev gui machine-learning news numpy projects python stdlib testing tools web-dev web-scraping Table of Contents Understanding the Concept of Scope Names and Scopes in Python Scope vs Namespace in Python Resolving Name
Explore this link on the map →related reading
- Scope (computer programming) - Wikipediaen.wikipedia.org
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- Resolving and Binding · Crafting Interpreterscraftinginterpreters.com
- Facts and myths about Python names and values | Ned Batcheldernedbatchelder.com
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- The Global Object Patternpython-patterns.guide
- A half-hour to learn Rustfasterthanli.me
- Statements and State · Crafting Interpreterscraftinginterpreters.com
- Glossary — Python 3.14.6 documentationdocs.python.org
- What the fuck is a closure? ・ Dan’s JavaScript Glossarywhatthefuck.is
- LEAP 71 | PicoGK.org Blogpicogk.org
- Programming FAQ — Python 3.14.6 documentationdocs.python.org