Submitted by admin on

One way without any IDE

  • First  Launch Command Prompt on Windows 
  • Use command  "python path_to_file.py" 
  • Press enter for output.

Second way with IDE

By using default IDE (Python IDLE)

Python IDLE is a Integrated Development Environment (IDE).

When you install Python, an IDE named IDLE is also installed. You can use it to run Python on your computer. It's a decent IDE for beginners.

When you open IDLE, an interactive Python Shell is opened.

 

How to run a program in Python IDLE

First, launch the Python IDLE shell

Click on file>new file

Write Python program

Save file with the .py extension

Go to Run > Run Module or simply click F5.

Congratulations! You just wrote your first program in Python.