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.
(..) So I too would make this 'popped-corn' and win over those mindless dregs. Lights out! That's when I learned a very hard lesson. Good receives all the praise, adulation. While evil is sent to quiet time in the corner. So a fitting end wasn't really an option. While they were learning the itsy (..)2010 Megamind