Hey, I’m just getting started in the PY4E course and I’m having trouble running my .py files in Terminal. I managed to navigate to the file that holds my example problems and used the ls command so I know my file is in there. But when I enter cd ex_02_03/, terminal says “cd: no such file or directory: ex_02_03”
oh, its not a directory. So ‘cd’ stands for ‘Change Directory’. But the file ex_02_03.py is not a directory, its a file. In order to execute the python file, you need to run Python with the filename.
% python ex_02_03.py
Now if it says python is not a recognized command, it means you don’t have python installed or you don’t have a Path to it.