What is __name__=="__main__" in python |

Опубликовано: 13 Сентябрь 2023
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн What is __name__=="__main__" in python | длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Sumit Singh 13 Сентябрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 8 раз и оно понравилось 2 зрителям. Приятного просмотра!