Python · Beginner · 15 min
Your first message
Read a simple program and work out what it displays.
Before you start
No prior coding is required. Use matching quotation marks and keep print lowercase.
Step 1 of 4
Predict the output before running the program
Tell Python what to display
A program is a set of instructions. The print() function displays a value. Here, the value is text inside quotation marks. Python calls a text value a string.
print("Hello, Ada!")Output
Hello, Ada!
Your first message
print("Welcome, Sam!")What does this program display?
Make a greeting
- Read the two print examples.
- Predict the output before checking each answer.