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

Publié le: 14 juin 2020
sur la chaîne: 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  


Sur cette page du site, vous pouvez voir la vidéo en ligne What is __name__ == '__main__' in Python | Python for Beginners | MLittleProgramming durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur MLittle Programming 14 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 38 fois et il a aimé 4 téléspectateurs. Bon visionnage!