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
- 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.
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
greetingdirectly β but do keep the
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.