This is the ex24.py commit of learn python the hard way