The if __name__ == "__main__" conditional in python
TL;DR
When a module is imported into a script, the module's code is run when the script is run.
This is useful for unit testing
Like, most programming languages, python has special variables. A peculiar special variable in python is the __name__ vari...
vicradon.hashnode.dev2 min read