Python Programming Exercises,
Gently Explained
57
The complete solution for this exercise is given in Appendix A and
https://invpy.com/buy8get1free2.py. You can view each step of this program as it
runs under a debugger at
https://invpy.com/buy8get1free2-debug/.