Python if name main

preview_player
Показать описание
Python if name main or python main is a popular searched term. In this tutorial we look to better understand of the __name__ variable, when and how Python defines the __name__, the purpose, benefits and how you might implement the common python idiom if __name__ == “__main__”

Learn Python - Take our Python class for free! This python course for beginners moving deeper into Python who are looking to slowly and progressively learn new Python skills through explanations, example walk-throughs and code challenges. We know that the best way to learn Python is to start practising.

00:00 Introduction

🏅 Python Beginners Course:
Code repository

🏅 Python Beginners + Course :
Code repository

🏅 Python Intermediate Course:
Code repository

🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.

👍SUBSCRIBE to get more free tutorials, courses and code snippets!
Рекомендации по теме
Комментарии
Автор

One of the best Python related channels on youtube (and my personal favorite)!
Thank you for the awesome content!

nonamefound
Автор

Thank you again for the another useful content!

nahavasa
Автор

Great content, love the channel, have you any Python tutorials planned on Class based OOP? And decorators? Its quite tragic that Python's power is in its simplicity yet so few can actually explain it without over complicating it! Your Async IO was superb and yet everyone else starts with a load of gibberish about the GIL and makes it like pulling teeth! Thank You

artsytechie
Автор

Great channel, Thanks for your efforts,
I hope you make a video for SSE in Django.
I already could make it run, but I face a problem with buffer size, it doesn't buffer until It reaches 6000 chars
I hope to help me to solve it thanks

ahmedelmawrdy
Автор

HI Zander, can you explain please how can we get over circular imports, that is module A imports B and B module imports A?

georgesmith