Hello World in Python

Puranjay Prashanth
2 min readDec 19, 2021

--

Photo by Fotis Fotopoulos on Unsplash

Introduction:

Let get started with the most basic Python program called “Hello World”.

When installing Python3 an IDLE (Integrated Development and Learning Environment) will be installed by default.

To create your first program called “Hello World”, follow the steps bellow.

Steps:

1. Open the Python IDLE

A window called the shell should pop up.

There are 2 options to create the “Hello Word” program in Python, you can use the shell or you can create a new Python “file”.

2. Write the code

Option 1:

  1. Write “print(“Hello World”)” into the “shell”.

2. Click “enter” on your keyboard to run.

The output should be “Hello World” if everything is setup properly.

Option 2:

  1. Click “File” then “New File” (first option)

2. Type “print(“Hello World”)” into the new “untitled” file.

3. Save the file by going to “File” then “Save” or CMD + s (CTL + s for Windows)

4. Run the code by clicking “Run” from the menu bar and then “Run Module” (Keyboard Shortcut “F5”)

5. If everything was setup correctly then the output would be “Hello World” in the shell.

Conclusion:

Congratulations you have just made you first Python program called “Hello World”! 🎉🥳🎈

--

--

Puranjay Prashanth
Puranjay Prashanth

Written by Puranjay Prashanth

I'm Puranjay, a software developer and aspiring entrepreneur from Prosper, Texas.

No responses yet