Live and learn spoken cliché
It is usually used when one is surprised to learn something.
Learn or discover something new and surprising from one's experience or mistakes.
I didn't read the recipe, so my new dish was a disaster. Oh well, live and learn!
I wouldn't know how interesting skating is if I didn't try - live and learn!
The phrase originates from the second half of the 1500s.
People tend to like forbidden or illegal things just because they are forbidden or illegal.
He must have believed that stolen fruit is the sweetest, and he, therefore, cheated on his partner.