if __name__ == “__main__”, What It Does & Why We Need It
# How this prevents unwanted code from accidentally running
If you’ve programmed in Python for a while, you most probably have seen the if __name__ == "__main__"
statement in a couple of projects. This article aims to explain in simple english what this statement does, and why we need it.