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
Auf dieser Seite können Sie das Online-Video Python 3.9: if __name__ == '__main__' mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BitCode 29 März 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 101 Mal angesehen und es wurde von 13 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!