How to Use Global Variables Inside a Python Function | Global Variables in Python Functions

Pubblicato il: 12 settembre 2022
sul canale di: Miss.python
621
17

This video shows what a global variable is in Python. A global variable can be used inside or outside of the functions. To change a global variable inside a function, we need to use the “global” keyword, otherwise, it will be a local variable with the same name as the global variable.

––––––––––––––––––––––––––––––
Happy by Mike Leite   / mikeleite  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/al_happy
Music promoted by Audio Library    • Video  
––––––––––––––––––––––––––––––
#Shorts


In questa pagina del sito puoi guardare il video online How to Use Global Variables Inside a Python Function | Global Variables in Python Functions della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Miss.python 12 settembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 621 volte e gli è piaciuto 17 spettatori. Buona visione!