Sample problems from Learn Python the Hard Way, with some tweaks made.