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.
(..) sentence. -Bitch is crazy. I like her like that - Now take that bitch. You don't know when to quit do you, girl? - Let me teach you a lesson Stop! Let me go! Take your ass over there. What the fuck are you looking at old man? What the hell are you spooks up to? Spooks? (..)2008 Gran Torino