ClassicComputerScienceProblemsInPython
Source Code for the Book Classic Computer Science Problems in Python
Install / Use
/learn @davecom/ClassicComputerScienceProblemsInPythonREADME
Classic Computer Science Problems in Python
This repository contains source code to accompany the book Classic Computer Science Problems in Python by David Kopec. You will find the source organized by chapter. As you read the book, each code listing contains a file name that corresponds to a file in this repository.

Get the Book
- Manning the publisher sells both hard copy and DRM-free eBook editions
- Amazon if you buy the hard copy from Amazon, it will come with a way to download the eBook for free from the publisher
Versioning and Packages
The source code in this repository requires Python 3.7 and installation of the typing_extensions package. Due to its extensive use of Python 3.7 features (data classes, advanced type hints, etc.), most of the source code will not work with earlier versions of Python. You can install the typing_extensions package with pip3 install typing_extensions or pip install typing_extensions depending on your Python/pip setup.
Questions about the Book
You can find general questions and descriptive information about the book on the Classic Computer Science Problems website. Also, feel free to reach out to me on Twitter, @davekopec. If you think you found an error in the source code, please open an issue up here on GitHub.
Free Content Based on the Book
License
All of the source code in this repository is released under the Apache License version 2.0. See LICENSE.
Other Books and Languages
Official Books from the Series by @davecom
My Latest Book
Ports
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
83.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
338.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Languages
Security Score
Audited on Mar 21, 2026
