Run a Python file from command line

--Originally published at Luis Santana's Blog

Well, I’m new at this of programming. The first thing I investigated and learned about was something related to Windows Prompt, but then my teacher told me that I should be using Cygwin and I started my research again.

What I did first was opening Atom and writing the usual “Hello World”

Then the next question was, how to open my “Hello World” from the command line?

This was a little bit confusing, first I tried with Windows Prompt, but when I installed Python 3 on my computer I didn’t pay attention where I saved my Python and I didn’t find it. I tried with Cygwin and with my teacher’s help I was able to do it. Imagen2

And that’s how I opened a Python file from the command line.