What is __name__ == '__main__' in Python | Python for Beginners | MLittleProgramming

Veröffentlicht am: 14 Juni 2020
auf dem Kanal: MLittle Programming
38
4

What is _name_ == '__main__' in Python

The _name_ variable is a special Python variable. It gets its value depending on which script is being executed. The value of the _name_ variable depends on the scope. In the script that is being executed the value of _name_ is main. For scripts that are imported into the script being executed

In this video we will look at:
What is _name_ == '__main__' in Python
The _name_ variable in Python
The value of the _name_ variable in Python

We will be looking at What is _name_ == '__main__' in Python in PyCharm.

Link to Python for Beginners Course:    • Python tutorials  
Python Functions Video:    • Python Functions: Arguments, Paramete...  
Previous Video:    • Python Decorators Tutorial | Python f...  

Link to download PyCharm: https://www.jetbrains.com/pycharm/dow...

MLittleProgramming provides Python tutorials for software developers. The tutorials are sequential so you can start right from the beginning to learn Python if you are a beginner. If you're a little more advanced you can skip along a few videos in the Python tutorial series to get the Python knowledge you need.

Video Tags:
What is _name_ == '__main__' in Python,__name__ == _main_ python,__name__ in python,__name__ variable,name variable in python,if _name_ == _main__,if __name_ == _main_ meaning,if _name_ == _main_ in python,if _name_ == _main_ in python 3,python tutorial,python tutorial for beginners,python (programming language),__main__ python,learn python,python on mac

Remember to Like, Comment and Subscribe if you haven't already!

As an Amazon Affiliate I may receive payment for qualifying purchases:
How I make my Python tutorials:
Computer: https://amzn.to/2SfK8ux
Keyboard: https://amzn.to/31uqJdA
Mouse: https://amzn.to/2OrAl3m
Speakers: https://amzn.to/37ZaTKi
Microphone: https://amzn.to/2OxIOC8

Facebook: https://m.facebook.com/MLittleProgram...
Twitter:   / mlittle_program  
Instagram: https://www.instagram.com/mlittle_pro...
TikTok:   / mlittle_programming  


Auf dieser Seite können Sie das Online-Video What is __name__ == '__main__' in Python | Python for Beginners | MLittleProgramming mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer MLittle Programming 14 Juni 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 38 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!