Reading from "Think Python 2e": Ch. 11