There is an important exercise in the Head First Programming book for python. The coffe beans page.
The original website with the coffe beans doesn’t exist anymore.
So here is a backup, hopefully it will last forever: http://rogeek.com/coffe_beans.html.
I think it is the same thing as the original one, however, you can save the page and modify it as you like.