For starters, I have a mac-os so I run python differently from windows. I cannot seem to execute a file to run python using terminal. Is there some dedicated website for python related stuff for these types of queries, or is this the correct one.
So i made a folder called
python_work and in that I have saved a file called hello_world.py. I want to run it from terminal. I downloaded the latest python software as well. First I use the confirm directory code like so
cd Desktop/python_work/, It goes into the file, i then type ls and it shows me the file, i.e hello_world.py. Now, to run it, idk what to do, I tried python hello_world.py but It says command not found? Can someone advise
TheCuriousOne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.