Here is what you can control: Your effort. Having the best attitude in the room. Not complaining. Being a good listener. Being able to take criticism. Working harder than anyone else. Researching and trying to figure out ways to become the best. Being a good student.
Things you can’t control? Results/outcomes. What other people do, think, or say. “Luck.”
Focus all of your energy and attention on the things you can control and don’t let the things you can’t control get you up or down. They are what they are. If the ball bounces the right way for you, great! But don’t expect things to go well for you if you’re not putting in the work.
If you did what you felt are the right things and didn’t get the result you wanted, don’t dwell on it. Allow yourself a short period of reflection to see if your decisions and actions were actually correct. If they were, continue to do that and work hard with a positive attitude. Eventually things will go your way. If your actions, while made with the best intentions, ended up being incorrect or ineffective, keep that in mind and change how you act in the future to help produce a better end result.