Lesson·difficulty 1/5·~5 min
Hello, World!
Read the task → edit your code → Run to see the output → Run tests to check your answer.
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
- Create a variable called
greetingand set it to the textHello, World!(spelled and punctuated exactly like that — capital H, capital W, the comma, and the exclamation mark). 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
greetingdirectly — but do keep the
Tests
- greeting is text (a string)
- greeting says exactly Hello, World!
✦ Need help with this task?
Sign in or create a free account to get AI help. Free includes a monthly AI allowance.
warming up
Loading editor…
Consolewaiting
$ Console output will appear here.