Theory

Python is a programming language that allows you to give instructions to a computer.

The print() function displays text on the screen. To use it, write:

print("Your text here")

The text must be enclosed in quotes (either "double" or 'single').

Exercises in this lesson

1

Hello, World!

Write a program that displays the text "Hello, World!" on the screen. This is the traditional first program that every programmer writes!

Easy Points: 10
2

Your Name

Write a program that displays your name on the screen. For example, if your name is Alex, the program should output: Alex

Easy Points: 10
3

Multiple Lines

Write a program that displays two lines: Line 1: Python Line 2: is awesome! Use two print() statements.

Easy Points: 15
Solve in the playground
Next lesson: Variables →