Beginner · 6 min
Your first message
Read a simple program and work out what it displays.
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!
Quotes belong to the code
Matching single or double quotes both work. The quotes tell Python where the string begins and ends; print() does not include them in the displayed message.
print('Ready to learn')Output
Ready to learn
Make a greeting
- Read the two print examples.
- Predict the output before checking each answer.
Try it yourself
Code runs on this device. When you are signed in, drafts sync to your account.
Print a greeting
Change the program so it displays Hello, Ada! exactly, including the capital letters and punctuation.
Keep print lowercase. Put the complete greeting inside matching quotation marks.