I'm glad they got caught. That will 'teach them a lesson'! [=they will learn that they should not do that again]
We 'learned our lesson' the hard way. [=we learned from an unpleasant experience]
They studied the 'lessons' [='teachings'] of the great philosophers.
(..) between the time you buy it... ...and the time you sell it? Now this is California. The richest, most populous state in the Union. I don't need a geography lesson from you. Of course, you've been there. I do forget, you get around, don't you? Where was l? -California. -California, right. (..)1978 Superman