All pseudocodes in the book chapter by chapter, written in Python