In this video we are going to see what are the scopes of variables in python.
There are two types of variables: global variables and local variables.
The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.
Local variables can only be reached within their scope(like func() above).
A global variable can be used anywhere in the program as its scope is the entire program.
In questa pagina del sito puoi guardare il video online local and global variable scope in python | Python Tutorial for Beginners | Global Keyword in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Secret Sheru 20 luglio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 13 volte e gli è piaciuto 0 spettatori. Buona visione!