2 of 1 ·Running code & print()

Lesson 2 · Python Foundation
Your first output.
Meet Python
Python is another way to write instructions. Run print('Hello') and look at the output. Change the text, run again and describe what changed.
Click to zoomIn 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.
9 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.