Back to Browse

if __name__ == "__main__" - Python Tutorial

472 views
Jan 2, 2023
6:41

Hello, everyone! In this video I explain what the variable __name__ is and what the conditional 'if __name__ == "__main__"' does. This conditional allows you to check whether a module is being run directly or if it is being imported. Thank you for watching and have fun coding! *Hashtags* #robotmaze #programming #python #pythonprogramming #pythontutorial

Download

1 formats

Video Formats

360pmp48.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

if __name__ == "__main__" - Python Tutorial | NatokHD