Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: doingmathwithpython/code

Published code and Initial errata

12 Nov 21:00

Choose a tag to compare

This release consists of the published code in the book and the following errata:

Chapter 5

  • On page 132, in the section "Probability," the code line above the one marked with a (3), which reads for num in s: should instead read: for num in space.
  • On page 139, in the code for simulating a fictional ATM, the statement probability = [1/6, 1/6, 1/3, 2/3] should be probability = [1/6, 1/6, 1/3, 1/3]. (Thanks to Luis Soares)

The solutions for the challenges are present in the solutions sub-directory of each chapter.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.