← Practice
πŸ“– Your first programLearning path
Browsing as guestΒ·Sign in or create a free account to save progress and use tutor tools.
LessonΒ·difficulty 1/5Β·~5 min

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.

It's only two lines β€” type them yourself in the editor (don't peek at a ready-made answer; the typing is where it starts to stick). Then 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

Sign in or create a free account to use your monthly AI explainer allowance.

warming up
Loading editor…
Consolewaiting

$ Console output will appear here.

>_AI coach
Sign in or create a free account to chat with the tutor.