A quick overview and summary of the book Data Structures and Algorithm with Python by Michael T. Goodrich
To follow along with the examples in this book, you need to have Python installed on your system. Below are the instructions for installing Python on different operating systems:
- Download the latest Python installer from the official website.
- Run the installer and follow the on-screen instructions.
- Make sure to check the box that says "Add Python to PATH" during the installation.
- Open the Terminal.
- Install Homebrew if you haven't already by running:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Python by running:
brew install python
For Debian-based distributions (like Ubuntu):
- Open the Terminal.
- Update the package list and install Python by running:
sudo apt update sudo apt install python3
For Red Hat-based distributions (like Fedora):
- Open the Terminal.
- Install Python by running:
sudo dnf install python3
After installing Python, you can verify the installation by running python --version
or python3 --version
in your terminal or command prompt.
Additionally, we will be using Jupyter Notebook throughout this lesson.
You can install Jupyter Notebook using pip:
pip install notebook