Your help is much appreciated, this is kind of embarrassing.
I have looked for similar error message posts - but this occurs sooner. I apologise if this is annoying duplication.
I have downloaded Python 3.8.2. and have Atom.
When I am in Powershell, I can see that ex1.py (Exercise 1) and ex2.py are in a directory labelled lpthw. I can initiate python from the powershell, but cannot run the files (when entering either ex1.py or ex1) I get a ‘NameError’, and it says the name ‘ex1’ is not defined.
I can run the first file (ex1.py) from within Atom to the Python terminal, but get the same ‘NameError’ message when I attempt to run the second file.
This is the message that I get in PowerShell.
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘ex1’ is not defined.
Any help would be most appreciated.
thanks heaps in advance,