0 votes
1 view
in Python by (43.2k points)
Can anyone tell me how to run a Python program in CMD?

1 Answer

0 votes
by (92.8k points)

To run a Python program in the command prompt (CMD), first, you have to open it and type: C:\Python27\Python.exe (paste your path of the Python file that you want to execute) 

After that, you have to press Enter. This is how you execute your Python file in CMD.

If you are looking for an online course to learn Python, I recommend this Python Course by Intellipaat.

Related questions

0 votes
1 answer
asked Jul 11 in Python by ashely (43.2k points)
0 votes
1 answer
asked Jul 13 in Python by ashely (43.2k points)
0 votes
1 answer
asked Sep 27, 2019 in Python by Sammy (47.8k points)
0 votes
0 answers
asked Jul 17 in Python by ashely (43.2k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...