There are multiple ways to write this script, but you can find the version described in the book (except with comments) in exercise-9-3.py.
There are multiple ways to write this script, but you can find the version described in the book (except with comments) in exercise-9-3.py.