[Tutor] Python Shell
Alan Clarke
aclarke23 at toucansurf.com
Sat Oct 8 15:43:39 EDT 2016
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.
More information about the Tutor
mailing list