(ironical) Whatever it takes to make one learn his lesson, i.e. understand and/or comply: lecture (scolding, sermon), beating and/or other memorably unpleasant treatment
(literally) A small, short lesson, teaching in class or elsewhere; or a bit that is (to be) learned at home or elsewhere