You have to both pick the right problem and do the work.
The real takeaway though is to learn to code just the instructions that are necessary to complete the work.
Google had some of the best tech in the world, and I had an opportunity to work with it and learn it.
What had I done right? The key, it seemed, was drilling down to find the essence of things, and then developing that.
It’s easier to motivate yourself to do enjoyable tasks than those that feel grinding or boring.