How to run Python Program on your System?

Interactive Prompt

  • This mode is the most simplest mode and is used for experimenting with python.
  • To Launch Python in interactive mode.
    • Launch Powershell or Command Prompt in your windows machine and Enter Python


  • Lets experiment by print the most formal way of starting any language, by instructing the Python terminal to print the Hello world!


  • To return to the normal terminal enter exit()


Python Script/Code Files

  • Create a file with extension .py, i will be creating with the following content
print("Hello world!") 
  • Now we need to instruct the python to execute this file and that is done by executing python <filename>.py


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner