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
- 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!
β¦ 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.