play
What You Should Know About __name__ and __main__ in Python
3K views · Apr 5, 2022
Visit Channel:codefather.tech
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!
Show More

Comments

loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text