Python 3.9: if __name__ == '__main__'

Pubblicato il: 29 marzo 2021
sul canale di: BitCode
101
13

Welcome to another Python 3.9 tutorial video, this video is about __name__.
So lets look at it,
Before executing code, Python interpreter reads source file and define few special variables/global variables.
If the python interpreter is running that module (the source file) as the main program, it sets the special _name_ variable to have a value “__main__”. If this file is being imported from another module, _name_ will be set to the module’s name.


Keyboard I Use: https://amzn.to/2NgjPFV
(Affiliate Link, Helps the Channel)

Playlist:   • Installing Python 3.9  


In questa pagina del sito puoi guardare il video online Python 3.9: if __name__ == '__main__' della durata di ore minuti seconda in buona qualità , che l'utente ha caricato BitCode 29 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 101 volte e gli è piaciuto 13 spettatori. Buona visione!