Book and code for Think Complexity, 2nd edition

View the Project on GitHub AllenDowney/ThinkComplexity2

Think Complexity is an introduction to complexity science using Python. The premise of this book (and the other books in the Think X series) is that if you know how to program, you can use that skill to learn other things.

The second edition is published by O’Reilly Media. You can also order it from Amazon.

Other Free Books by Allen Downey are available from Green Tea Press.


I offer a half-day tutorial based on material from Think Complexity. Information about the tutorial is here.


For each chapter, there is a Jupyter notebook in this repository that contains the code from the chapter, exercises, and (optionally) exercise solutions. You can download the notebooks and run them in your own Python environment, or you can use the links below to run them on Colab.