2nd Edition
Code for Allen Downey's book Think Complexity, 2nd edition.
PDF and HTML versions available from https://greenteapress.com/wp/think-complexity/
The first edition, published by O'Reilly Media, is available from https://greenteapress.com/complexity/index.html