Failure can be a powerful source of inspiration if we learn from it. We can examine our mistakes and find…