Prepare Your Development Environment

Each student in CSE 111 must install and use three pieces of free software which are:

If you recently completed CSE 110, it is possible that you already have all three pieces of software installed on your computer. Watch these three videos from Microsoft that explain a bit about Python, Visual Studio Code, and the Microsoft Python extension in VS Code.

If your computer doesn’t have Python, VS Code, and the Python extension for VS Code already installed, follow these steps to install the software:

  1. Download and install the latest stable version of Python 3.13 from the python.org Downloads page. As of November 2024, the latest stable version of Python 3.13 is Python 3.13.0.
    1. Open the Python downloads page in your browser.
    2. Download and save the Python 3.13 installer for your operating system.
      • Do not install Python from within VS Code or from the Microsoft Store or using Anaconda or homebrew. Download and install Python from the link given in step a above.
    3. Double click the file that you downloaded to start installing Python.
    4. On the first screen of the installer, be certain to check both boxes: "Install launcher..." and "Add Python 3.13 to PATH" as shown in this screen shot:

      The first screen of the Python installer
    5. Click the "Install Now" link and Python will be installed on your computer.
  2. Download and install VS Code.
    1. Open the Visual Studio Code download page in your browser.
    2. Download VS Code for your operating system.
    3. Install VS Code.
    4. Accept all the default settings.
  3. Download a sample Python program.
    1. Create a folder named cse111 on your computer where you will store all the programs that you write for CSE 111.
    2. Download and save this sample Python file into the folder that you created.
  4. Install the Microsoft Python extension in VS Code.
    1. Run VS Code on your computer.
    2. In VS Code, open the sample Python file that you downloaded.
    3. In the lower right corner of VS Code, a small dialog will open that says, "The 'Python' extension is recommended for this file type."
    4. Click the "Install" button in that dialog.
  5. Execute the sample Python program.
    1. Execute the sample Python file that you downloaded by clicking the run icon in the upper right corner of VS Code. The run icon is a green triangle (Run icon in VS Code or Run icon in VS Code).
    2. The sample file should run without errors, and its output should be similar to this:
      Hello! What is your name? Amelia
      3
      2
      1
      Welcome to CSE 111, Amelia!
  6. In VS Code, enable the "Python Terminal Execute in File Dir" setting.
    1. If your computer is running Microsoft Windows, click the VS Code File menu, then "Preferences", then "Settings".

      How to open Settings in VS Code

      or

      If your computer is running Mac OS, click the "Code" menu, then "Settings...", then "Settings".

    2. In the "Search settings" box, enter "Python Execute In File Dir" and then check the checkbox on the left of the option "Python > Terminal: Execute In File Dir"
      How to find and enable the Python Execute in File Dir option

Summary

To prepare your computer so that you can develop Python programs in CSE 111, you should have done the following:

  1. Install the Python programming language version 3.13
  2. Create a folder named cse111 where you will save your Python programs
  3. Install a text editor named Visual Studio Code
  4. Install the Microsoft Python extension inside VS Code
  5. In VS Code, enable the "Execute in File Dir" option
  6. Download and run a sample Python program to ensure your computer is ready