184 articles · every code sample is tested
Theory
Learn the language, then the algorithms. Each article explains the idea, proves why it works and gives a complete Python implementation you can paste into the editor.
Where to start
A suggested order if you are new. Skip whatever you already know.
Foundations
Learn Python and the toolkit you need to solve problems fast.
Algorithms & Data Structures
The classic competitive-programming curriculum, explained and implemented in Python.
The algorithms tracks are Python adaptations of articles from cp-algorithms.com, shared under CC BY-SA 4.0. See the notice at the bottom of each article.