Python 3.9: Global and Local Variables

Pubblicato il: 13 febbraio 2021
sul canale di: BitCode
147
14

Welcome to another Python 3.9 tutorial video, this video is about global and local variables.

We already know about variables and the terms of global and local refer to a variable's reach within a script or program. A global variable is one that can be accessed anywhere. A local variable is the opposite, it can only be accessed within its scope or some block of code.

Any variable defined with the "global" keyword is a global variable. Although python handles global variables in a different way. You will mostly be suggested not to use global variables as they can be accessed anywhere and can be a security risk. So there are some work arounds so lets see those.

Keyboard I Use: https://amzn.to/2NgjPFV

Playlist:   • Installing Python 3.9  


In questa pagina del sito puoi guardare il video online Python 3.9: Global and Local Variables della durata di online in buona qualità , che l'utente ha caricato BitCode 13 febbraio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 147 volte e gli è piaciuto 14 spettatori. Buona visione!