Leo Umesh avatar

RUNNING PYTHON PROGRAM FROM COMMAND PROMPT

leoumesh

Published: 31 Jul 2020 › Updated: 31 Jul 2020RUNNING PYTHON PROGRAM FROM COMMAND PROMPT

RUNNING PYTHON PROGRAM FROM COMMAND PROMPT

Screenshot_1.png


You can see I am executing simple Python code from the command prompt. So how can you do this. For this you have to set path to use python in your command prompt.
If you are on Window, you need to go to This PC. Right click on it and then choose Properties. Then Advanced System Settings. A box will appear. Then Click on Environment Variables then double click on path and then click "New".

You will need to add following two paths.

Screenshot_2.png

Screenshot_3.png

After adding those two paths then you can come back to Command Prompt, and then type python and carry out any programming task related to python.

Leave RUNNING PYTHON PROGRAM FROM COMMAND PROMPT to:

Written by

I am just a passionate blogger.

Read more #python posts


Best Posts From Leo Umesh

We have not curated any of leoumesh's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Leo Umesh