First Python program

Assuming that you have installed and set up python Environment on your computer, lets create our first simple Python program.

First Python program

Assuming that you have installed and set up python Environment on your computer, lets create our first Python program.

You can use a simple text editor like Notepad or you can use IDE such as NetBeans or Eclipse to write the program.

Example – first python program

print('Hello World')

Output

Hello World

To run your python program, follow the below mentioned steps:

  • Save the file with .py extension (Eg: mypython.py).
  • Open Command prompt and navigate to the folder where your program is saved.
  • Type the following command – python mypython.py

Share Tweet Send
0 Comments
Loading...