VISUAL STUDIO CODE · ОСНОВЫ · LESSON 05

Run the first file.

Editor and terminal · about 13 minutes

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

Write a little program.

Open hello.py and dial print with a short greeting. Save the file via Ctrl+S or Cmd+S on Mac.

✦ First dial and save, then run.

STEP 2

Look at the result.

Press Run Python File in the upper right corner of the editor. A terminal will open at the bottom where the result will appear.

From file to result
hello.pypreserveLaunchRun Python FileTerminalsee the answer

✦ If Python is not found, go back to lesson 3 and check the interpreter.

TRY IT YOURSELF

Practice

In hello.py, write a program that prints a greeting. Save the file, run it with the Run Python File button and find the result in the terminal.