Lesson 1 of 4 · 5 min
Say hello with print()
A program is a list of instructions for a computer. In Python, the print() instruction shows a message on the screen.
Whatever you put inside the quotation marks is printed exactly as it is. Python runs your lines from top to bottom.
Your turn: Read the program and predict what it shows.
print("Hello, world!")
print("My name is Octo")
print("I have 8 arms")Quick check
How many lines of text will this program print?