Running a script in command line

Hi everyone,
New to python idle and trying to run some output code in terminal on my Mac, however, it cannot find my files. I put them in python so I use cd file name etc to get to the right place yet it won’t let me run the file itself. I am really trying to code vector robot and can run his examples via./file name. However not any I make myself, even if I save them to the same folder as the tutorial files I am able to run on vector.
Please Help

Well, this depends a lot on where does the file lives. As far as I know, the Python IDLE has an option to execute the file.

If you wanna execute it on a terminal, maybe you haven’t saved your file. If you did, you will have to find how to get to that place.