LESSON 01

print("Hello World")

Your first program. By the end you will know what every single character in this line does.

USES: nothing. Start here.

BLUEPRINT · TAP OR HOVER EACH PIECE

Tap or hover each piece to see what it does.

01

What is print( )?

print( ) is a function — a small machine with one job. You put something between its parentheses and it shows that on the screen. Think of it as a tiny printer inside your code.

INPUTprint("I am a programmer now")

02

The parentheses ( )

Parentheses hold what you give the function. Everything you want shown goes inside them. Every opening ( needs a matching closing ), like a pair of hands holding your text.

INPUTprint( ) # legal, prints nothing

03

The quotation marks " "

Quotation marks wrap text so Python knows it is text, not a command. Text wrapped in quotes is called a string. An opened quote must be closed with the same kind of quote. Python accepts both double quotes and single quotes — they do exactly the same thing. Pick one style and stay consistent.

INPUTprint("double") print('single') # both work

04

Put it together

Function name, open parenthesis, string, close parenthesis. That is the whole spell. Old Python (version 2) wrote it without parentheses — that habit is dead. Modern Python always uses print().

OLD HABITprint "Hello # Python 2, dead
MODERNprint("Hello") # Python 3, modern
Report a mistake or suggest a lesson