Variable Scope - Python for Beginners

Pubblicato il: 21 giugno 2026
sul canale di: The Software Mentor
2
0

Variable Scope - part of Python for Beginners.
Short, clear Python lessons - one concept at a time.

In this lesson:
Variables created inside a function are local and private to that call
Local variables are destroyed as soon as the function returns
Functions can read global variables without any special keyword
To reassign a global variable inside a function, declare it with global

Chapters:
0:00 Intro
0:08 What is Scope?
0:20 Walkthrough
0:30 Walkthrough
0:40 Walkthrough
0:53 Walkthrough
1:08 Running the Program
1:18 Changing a Global Variable
1:29 Walkthrough
1:40 Walkthrough
1:52 Global Keyword in Action
2:02 Recap

Module: Functions
Every command and code example in this video is executed and verified before publishing.


In questa pagina del sito puoi guardare il video online Variable Scope - Python for Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato The Software Mentor 21 giugno 2026, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2 volte e gli è piaciuto 0 spettatori. Buona visione!