We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Installing Python

Until now, you've written Python in the browser. Install Python 3 on your computer so you can run BookBot locally.

Assignment

Follow the instructions for your operating system.

Windows (WSL 2) / Linux Users

You may already have Python 3 installed. Check by running:

python3 --version

If that worked, skip to the submission step.

If the command failed and you're using Ubuntu (including WSL 2's default distribution) or Debian, install Python 3 with apt:

  1. sudo apt update
    sudo apt install -y python3
    
  2. python3 --version
    

If your Linux distribution doesn't use apt, install Python 3 with its package manager, then run python3 --version.

Submit the CLI tests. There's no penalty on failure for this lesson.

macOS Users

We'll use the Homebrew package manager to install Python 3.

  1. brew --version
    
  2. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  3. brew install python
    
  4. python3 --version
    

That command should print a Python 3.x version.

Submit the CLI tests. There's no penalty on failure for this lesson.