Think Further: the files.

Starter code and test data for the problems listed in Appendix A of the book.

You need only Python 3. The download holds no finished programs; they are printed in the book, so write each function yourself first and then compare.

How to use them.

  1. Unzip the download. You get a folder named think-further-files with one folder for each of Parts 2 to 10 of the book.
  2. Open the folder of the part you are reading, for example Part 02.
  3. Write your function in starter.py.
  4. In a terminal, in that folder, run python3 starter.py. It tests your function and prints PASS or FAIL.

Appendix A of the book, “Run, test and explain your program”, explains every command and every test file.

The files for Think First