humix
What You Should Know About __name__ and __main__ in Python
2K views · Apr 5, 2022
In this tutorial we go through the usage of __name__ and __main__ in Python.

We will see how checking the value of __name__ can be useful when running your Python program either directly or as a module.

You can find the full tutorial on the Codefather blog:
https://codefather.tech/blog/if-name-main-python/

If you want to learn more about Python have a look at the full list of Codefather tutorials:
https://codefather.tech/blog/

Happy coding!
see more

Comments

Latest Videos
place
7:32
play
How to Import a Python Function from Another File
How to Import a Python Functio...
How to Import a Python Function from Another File
201K views