From the course: Visual Studio Code for Python Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Build HelloWorld.py

Build HelloWorld.py

From the course: Visual Studio Code for Python Developers

Start my 1-month free trial

Build HelloWorld.py

- [Male Instructor] Now that we have our environment and editor all set up, let's jump in and create our first Python program using VS Code. So here in the file view, I've opened the exercise files folder as my workspace and I can either right click and choose New File or I can choose New File from the file menu or I can just select the folder that I want and then click this New File icon right here. And I'll just give it a name. I'll call it Hello World, and then I'll type dot py. And you can see that when I type the py extension, the little icon changes to indicate that this is a Python file. So VS Code opens a new editing window for me. So let's enter some code in the file. So I'm going to write a statement that just prints the text Hello World to standard output. So when I start typing print, you can see that the intellisense pop up appears with the print keyword selected. So to complete that statement, I can just hit Enter and then the print command appears, and then I can type…

Contents