[Tutor] question about "__main__"

CUONG LY clyxx001 at odu.edu
Mon Nov 16 10:30:27 EST 2015


Hello,

Iā€™m learning Python. 

I want to know what does the following line represent and why I see some python codes have two of them ?

if __name__ == ā€˜__main__ā€™:




Thanks in advance

Cuong


More information about the Tutor mailing list