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.
(..) Thank you. I'll find my own way out. Syrio says a water dancer can stand on one toe for hours. It's a hard fall down these steps. Syrio says every hurt is a lesson and every lesson makes you better. - Tomorrow I'm going to be chasing cats. - Cats? Syrio says. He says every swordsman (..)2011 TvShow: Game of Thrones Title: Cripples, Bastards, and Broken Things Season: 1 Episode 4