menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Using Pyth...
source image

Medium

1w

read

251

img
dot

Image Credit: Medium

Using Python Namespaces to Keep Track of Code

  • A namespace in Python is a system that maps names to objects.
  • Multiple namespaces can exist at the same time and are typically organized by scope and execution context.
  • Namespaces provide name-to-object mapping, while scopes determine the visibility of names.
  • Python follows the LEGB rule, searching for names in local, enclosing, global, and built-in namespaces.

Read Full Article

like

15 Likes

For uninterrupted reading, download the app