What is __name__=="__main__" in python |

Pubblicato il: 13 settembre 2023
sul canale di: 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


In questa pagina del sito puoi guardare il video online What is __name__=="__main__" in python | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sumit Singh 13 settembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8 volte e gli è piaciuto 2 spettatori. Buona visione!