My code from the Learn Python the Hard Way tutorial