Don't think of an attempt as a 'try'. Try not to use the word 'try'.
Avoid the word try. Everytime you do something you are doing something – not just trying to do something. 'Try' makes it sound like it's not a full-on do.
You are doing. And we learn from doing.
Whether you failed or succeeded, you did something. You achieved that doing.
It wasn't just a try that didn't really count. It was an experience that contributed to your future success and your current being.