flâneur — a map of the web's best reading

Python Scope & the LEGB Rule: Resolving Names in Your Code – Real Python

realpython.com · 10,166 words · saved by 1 readers

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