Local Variables « Language Basics « Python






1.locals() Is Read-Only: globals() Is Notlocals() Is Read-Only: globals() Is Not
2.local variable hides globallocal variable hides global