Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

What does if __name_=="_main__": do?

basically,   (__name__ == '__main__') ==True

confirms file is NOT a/part of a module and may continue execution  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #What
ADD COMMENT
Topic
Name
3+8 =