Hi.

I have just installed Python 2.7.12 ( i have windows xp).

I created a program called HW.py  that runs under a command prompt, but Python 
Shell gives the following error:

Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    HW.py
NameError: name 'HW' is not defined

Can someone please tell me what I'm doing wrong?

I have added the Python directory to the Path.



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

Reply via email to