Some basic python exercises from Learn Python the Hard Way