Aug-13-2017, 04:13 PM
(Aug-13-2017, 03:42 PM)Regulus Wrote: But going to >>> by entering 'python3', then entering the program name, results in "File <stdin> , line 1 in <module> NameError: name: 'seq' is not defined" error. The program filename is seq.py and that's what I enter at >>>. It is in the Python34 directory where I am when I enter 'python3'.
Ok, so you opened python interpreter and typed the filename that's bound to get you name error. As Interpreter is to execute your code on the fly. To execute a .py file you have to pass python file as the argument to python.exe.
If you correctly added python34 to the path and changed the python.exe name to python3.exe, You should be able to execute your seq.py file by typing following in CMD.
python3 seq.py