Run Python code from Command Line

Previous
Next

Edit and Run application:

  • We can simply edit the python code using Notepad editor.
  • It is also called Universal Editor to write any program.
  • Open notepad software using run command as follows.
  • When we click on OK button, it opens “untitled” Notepad window as follows.
  • Once we edited, we need to save with .py extension.
  • Every program run by Operating System from its Environment.
  • We can open DOS using “cmd” command from “run”
  • We run the python application from Command prompt manually as follows.
    • cmd:/  python  <source-file>
  • Generates the Output.
Previous
Next

Add Comment

Courses Enquiry Form