14. Mastering `if __name__ == '__main__'` in Python 3 π
Learn how the `if __name__ == '__main__'` statement works in Python, its purpose, and how to use it effectively in your programs with easy-to-follow tutorials.

codebasics
141.4K views β’ May 8, 2019

About this video
The python tutorial guides us about if β __name__β==β__main__β. It will teach us what is β__name__β in python, how it is executed and how to execute python file from a command prompt.
Topics that are covered in this Python Video:
0:00 Overview
0:17 what is __name__
2:42 Execute python file from a command prompt
Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.
Next Video:
15. Exception Handling [Python 3 Programming Tutorials]: https://www.youtube.com/watch?v=kqVQDXfc9hU&list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0&index=17
Website: https://codebasics.io/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub
Topics that are covered in this Python Video:
0:00 Overview
0:17 what is __name__
2:42 Execute python file from a command prompt
Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.
Next Video:
15. Exception Handling [Python 3 Programming Tutorials]: https://www.youtube.com/watch?v=kqVQDXfc9hU&list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0&index=17
Website: https://codebasics.io/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
141.4K
Likes
1.7K
Duration
4:25
Published
May 8, 2019
User Reviews
4.5
(28) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.