Python – Basic Output (print)

In this tutorial, I will be introducing you to a language called Python. We will be creating a simple program that outputs “Hello World” on the screen.

First, you should download python here: https://www.python.org/downloads/

 

Then, install the software. Installation is very easy because all you need to do is read and follow the directions.

 

After installation, create a new folder in My Documents named tutorials.

While inside the tutorials folder, create a new text document and rename it tut1.py.

Open the file with your favorite text editor (I love to use Notepad++).

Type the codes same as below:

 

py1

Next, open the program named IDLE(Python GUI).

We should have the same screen as below.

py2

 

Click File -> Open, locate the file you created named tut1.py.

The window below should appear.

py3

 

Click Run -> Run Module.

The program will run your program and the output should be the same as below.

py4

 

 

Advertisements

One thought on “Python – Basic Output (print)

  1. Pingback: arjunaraneta | Python – Variables

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s