Think First: the files.

Starter code and test data for every problem 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-first-files with one folder for each of the ten parts of the book.
  2. Open the folder of the part you are reading, for example Part 01.
  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 Further