Articles → Python → Running Python Program Using Command Line

Running Python Program Using Command Line






Sample Program




Picture showing the sample python program with print statement

Click to Enlarge


Python Is Not A Recognized Command




  1. Open the command prompt
  2. Write the following command
  3. path = path_of_python.exe



Running The Program




  1. Open the command prompt
  2. Write the following command
  3. Python c:\temp\Hello.py




Picture showing the execution of python program using the command prompt

Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Monday, January 28, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250