Python Hindi Tutorial 13 - if __name__ == "__main__"

Опубликовано: 03 Ноябрь 2024
на канале: codebasics Hindi
17,027
363

if _name_ == '__main__' is a very common code you will see in any python program. This is similar to void main() in C++ or java. It is a main entry point into your program. _name_ is a special variable available in any python program and when you run some file let's say foo.py, _name_ will be initialized to _main_ for that file. We will learn this important concept in this python hindi tutorial for beginners.
#PythonTutorialHindi #Python #PythonProgramming

Code used in this tutorial: https://github.com/codebasics/py/tree...

Website: http://codebasicshub.com/
Facebook:   / codebasicshub  
Twitter:   / codebasicshub