Tag: “__main__”
What does if ` __name__ ` == ` “__main__” `: do?
In this article, we will learn about what does if __name__ == “__main__” do? Before diving into deep, its simple meaning is: It is just a simple if block where, if var __name__ is equal to string “__main__” then the indented code will run, if not then the code won’t run. Now lets discuss this …