Michael Lewis wrote:

Error I got when __name == ' __main__' was outside of any function:

Traceback (most recent call last):
  File "C:/Python27/Homework/Homework5_1.py", line 24, in <module>
    if __name == '__main__':
NameError: name '__name' is not defined


You have misspelled __name__ as __name.


--
Steven

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to