What is __name__=="__main__" in python |

Publicado el: 13 septiembre 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea What is __name__=="__main__" in python | de Duración hora minuto segunda en buena calidad , que subió el usuario Sumit Singh 13 septiembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 8 veces y le gustó 2 a los espectadores. Disfruta viendo!