2. the script would have to be in the current directory. ls it to be sure and then try...
I'm trying to learn python and I've written multiple scripts and saved them and ran them from the IDLE environment by pressing F5, I was wondering how I can execute those scripts from Terminal on a Mac. Everywhere I've read says that to run my saved script called "hello.py" i open a terminal window and just type 'python hello.py' and it should run the program, but it says:
python: unable to open file hello.py
Does anyone know how to fix this ro what to do? Is there some special code i have to type, or something I have to put into the script to make it executable from Terminal?