Lesson 2 · Python Foundation
Your first output.
In Scratch, a sprite could say something. On a webpage, you changed textContent.
In Python, your program talks by printing:
print("Hello, world!")
That one line is traditionally the first thing anyone writes in any language. Run it and the text appears.
print() is also going to be your main debugging tool all month — when you can't tell what your program is doing, print the value and look.
6 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.