Success & failure

Live and learn

Said when you have learned something from a mistake or surprising experience.