And then some more practice. In fact, you have to keep practicing for the rest of your life, otherwise you lose it. Practicing means doing drills, and drills can be repetitious and boring. Doing scales or working on your free throw for 45 minutes straight can be boring. Likewise, doing homework can be boring.
Lectures can be boring.
Lectures and textbooks are not meant to be a form of entertainment. In fact, the more entertaining they are, the more suspicious you should be of them. If your coach has you do drills on your hook shot, and you stop half-way through, complaining that you re bored, your coach will just tell you that you re not good enough for the team. Likewise, if you tune out of a lecture as soon as it gets boring, you re gonna sink. The key to success is for you to push yourself hard during drills, during practice, during lectures, during your study time.