VISUAL STUDIO CODE · ОСНОВЫ · LESSON 05
Run the first file.
Editor and terminal · about 13 minutes
STEP 1Write 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 2Look 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 resulthello.pypreserveLaunchRun Python FileTerminalsee the answer
✦ If Python is not found, go back to lesson 3 and check the interpreter.
TRY IT YOURSELFPractice
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.