Life is made up of ups and downs. Sometimes we win, sometimes we lose, but what we should ensure is that every time we learn.
If you win, take note of the things that made that possible, and also the loses on the journey to that winning and learn from them.
If you lose, take note of the lessons and do better next time.
You will succeed.