idiom
trial and error
Meaning
learning through experimenting and correcting mistakes
Example
We developed the product through **trial and error**.