idiom

Chalk something up to experience.

Theme: experience Keyword: experience

means

To regard an unsuccessful attempt as a lesson for the future.

Example

We lost the deposit and chalked it up to experience.