Your first program
A program is a list of instructions the computer follows from top to bottom. In Python, printing a message is one line:
print("Good morning!")
printis a built-in function: a command that does a job. Its job is to show text.- What you want printed goes inside the brackets.
- Text goes inside quotes. Text in quotes is called a string.
Each print starts a new line:
print("Line one")
print("Line two")
Python runs right here in your browser. The very first run downloads Python itself (about 10 MB), so it takes a few seconds; after that, runs are instant.
Your task
Write a program that prints:
Hello, world!Python is fun.
Press Run ▶ to see the output, then Check my code.