A working Python interpreter should be all that is needed.
The examples have been written on Python 3.7 but should work on most modern Python versions.
You can find the code files present in this chapter on GitHub at https://github.com/PacktPublishing/Crafting-Test-Driven-Software-with-Python/tree/main/Chapter02.