What is __name__=="__main__" in python |

Veröffentlicht am: 13 September 2023
auf dem Kanal: Sumit Singh
8
2

I have covered the _name_ variable in python.

It gives the name of the file. If called directly will return _main_ otherwise will give the filename.

One can keep the things under this condition that they want to run only if this file run directly with it's name.

#python #python3 #pythonprogramming #pythoninhindi #pythontutorial
#pythontutorialforbeginners #pythonforbegginer #coding #codinglife #codingninja #codingislove #codingislife


Auf dieser Seite können Sie das Online-Video What is __name__=="__main__" in python | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Sumit Singh 13 September 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!