Use Python in Command Prompt and open python files

--Originally published at Newbie Programmer

Hello, this is a post to how to run Python in Command Prompt Windows 10, but before you need to have installed Python.

First you need to open the Command Prompt:Captura de pantalla (10)

Second: You need to know where is your python.exe

In my case i have mi python folder in the desktop and if you open the python.exe you can see where is python.exe.python.jpg

In this case python.exe is in C:\Users\angel\Desktop\Python\python.exe.

And this is How i run python in CMD

Captura de pantalla (11)

And now; How to run python files in CMD.

In the same screen of the CMD you can put exit() to close python, and now you write python and the name of the .py file Like This

arch

NOTE: PUT YOUR PYTHON .PY FILES IN YOUR PYTHON FOLDER.

archives

And this i how i run this files on CMD in Windows 10,i dont know if this metod is effective but works for me, remember im a Newbie and new doing blogs.

mindblowing.gif

A random gif.