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.
(..) (GASPS) Wow! Well, that was funny. (PANTING) - You almost died. - (TULIP PANTING) I guess the lesson we learned today is don't ask me why I want to be boss, right? (CHUCKLES) Okay, good talk. - Good talk. - (INFANT CRYING) That didn't sound happy. (..)2016 Storks