← Practice
πŸ“– Your first programhello-world
LessonΒ·difficulty 1/5Β·~5 min

Hello, World!

Hello, World!

Every programmer's journey starts the same way: making the computer say something. Today that's you. πŸŽ‰

print(...) shows whatever is inside the brackets on the screen. Text goes inside quotes:

python
print("Good morning!")

Your task

  1. Create a variable called greeting and set it to the text Hello, World! (spelled and punctuated exactly like that β€” capital H, capital W, the comma, and the exclamation mark).
  2. print(greeting) so it shows up.
python
greeting = "Hello, World!"
print(greeting)

That's a real, working program. Run it and watch the screen talk back.

The test runner checks the value of greeting directly β€” but do keep the print so you can see your handiwork.

Tests

  • greeting is text (a string)
  • greeting says exactly Hello, World!

✦ Stuck? Ask for a spark

warming up
Loading editor…

$ Console output will appear here.

>_AI tutor
Sign in to chat with the tutor.