Python is designed to be readable. Start by printing a message, give information a name, then use a condition or a loop to guide what happens.
Three lessons · about 18 minutes0 of 3 complete
LESSON 1 · PRINT A MESSAGE
Ask Python to show its work.
The print() function displays information. Put text in quotation marks and place it between the parentheses. This is a quick way to see what your program is doing.
print("Hello, world!")
print("I am learning Python.")
Small detail: Text needs quotation marks. The parentheses tell Python what information to pass to print.