0

I am feeling quite stuck and discouraged and I am sure I am doing something wrong that must be very simple. I have saved a file in my documents called input_test.py but when I try to run it in the cmd line i get the following error:

enter image description here

Can anyone tell me why? What am I missing?

  • exit python and then type `python input_test.py` – Paul H Aug 06 '20 at 21:51
  • 1
    first result when i search for "run a python script" https://realpython.com/run-python-scripts/ – Paul H Aug 06 '20 at 21:51
  • 1
    You are within the python shell. Just quit (using `quit()`) and type `python input_test.py` in the command prompt directly. – Jan Aug 06 '20 at 21:52
  • It now says no such file or directory. How do I ensure I am in the right directory? – InvestingScientist Aug 06 '20 at 21:56
  • 1
    Does this answer your question? [how to run python files in windows command prompt?](https://stackoverflow.com/questions/39462632/how-to-run-python-files-in-windows-command-prompt) – Anass ABEA Aug 06 '20 at 22:03

0 Answers0