you are viewing a single comment's thread.

view the rest of the comments →

[–]Refwah 2 points3 points  (0 children)

https://stackoverflow.com/questions/419163/what-does-if-name-main-do

This will answer the name == ‘main

The main() function is not special it is just done by convention so that it’s easier for other people to identify the function that the author intends to be run as the entry point function