Notes and functions for Python algorithms course