PYTHON CORE · LESSON 01

First output

How to show text · about 8 minutes

Learning with progressRead the summary for free. To save the work, log in to the account.
STEP 1

Python can speak

The print command shows something on the screen. This is how Python understands that these are words.

print("Привет, мир!")
From command to result
Codeprint(…)Pythonruns itScreenПривет, мир!

✦ The screen will show: Привет, мир!

STEP 2

Brackets hold the text

After print you need round brackets. The quotation marks can be taken double or single. The main thing is to close them.

print('Ура!')

✦ Try to mentally find brackets and quotation marks in the example.

IN-CLASS PRACTICE

Type the code yourself

Set an example yourself, without inserting it from the buffer. That's how fingers remember commands.

print("Доброе утро!")
Open the editor for class work
HOMEWORK

Solve it yourself

Say hello to Python: get the phrase «Привет, Python!». Use print.

The answer is hidden. Use similar examples from the lesson notes.

Opening up your homework