In python how does __name__
is set to __main__
by default.
when we say print __name__
it outputs __main__
.
Asked
Active
Viewed 18 times
0
-
\_\_name\_\_ is set to \_\_main\_\_ – sudharsan Jan 10 '17 at 04:59
-
There are already many answers to this question, for example here: http://stackoverflow.com/questions/419163/what-does-if-name-main-do – kiliantics Jan 10 '17 at 05:11