get consultation

Setting your machine

We will use Visual Studio Code to run our python programs.

Installing Python and Visual Studio Code

  1. Install Python3

    1. Mac: Install homebrew

      To install Python using Homebrew use brew install python3

    2. Windows: Install Python from python.org. You can typically use the Download Python button that appears first on the page to download the latest version.

  2. Download Visual Studio Code to your machine

  3. Install the Python extension for VS Code. The Python extension is named Python and it's published by Microsoft.

Running Visual Studio Code

  1. Run Visual Studio Code

  2. Create a folder for your python work

  3. Create a new file: HelloWorld.py

  4. Enter the follow code:

    HelloWorld.py
    print('Hello World!')
    
  5. Press the play button in the upper-right to run the program. You'll see the output in the lower window.

Links

Exercises (5 mins)

None.