ex8.py

Example 8 from Learn Python The Hard Way