Python tutorial: Variable Scopes & Namespaces - global/local/nonlocal | Explained with animations

Pubblicato il: 08 July 2021
sul canale di: Sreekanth
29,141
880

The variables you define in your Python code has a lexical scope where they are valid. These scopes are categorized as local, enclosing, global and built-in scopes.
Python language also provides a few keywords like global and nonlocal to modify the behaviour of its variable name resolution.
This video tries to explain how scopes and namespaces work in different scenarios.

How variables work in Python:    • How variables work in Python | Explained w...  

Credits: The contents of this video are mostly from my notes on Dr. Fred Baptiste's course https://www.udemy.com/course/python-3...


In questa pagina del sito puoi guardare il video online Python tutorial: Variable Scopes & Namespaces - global/local/nonlocal | Explained with animations della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sreekanth 08 July 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 29,141 volte e gli è piaciuto 880 spettatori. Buona visione!