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.

14. Mastering `if __name__ == '__main__'` in Python 3 πŸš€
codebasics
141.4K views β€’ May 8, 2019
14. Mastering `if __name__ == '__main__'` in Python 3 πŸš€

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

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)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.