I am a Master's student who is mentoring a recent graduate through a research project in the same field (of astronomy). He is a very good student, but struggles with one of the realities of being an astronomer - coding. Right now, he is just running code others have written, but despite my strong suggestion that he start learning the language, still asks for my help on even the most elementary of problems. His confidence in using computers is lacking, and if he continues in the field it will become a serious hindrance.
I did provide a very high level of assistance early on, but this was mostly due to a couple of bugs in setting my own code up on his computer. In later stages of this research project, he is going to need to write some basic code of his own, so I feel we're getting to the stage where we need to establish a greater level of independence.
One of the key points of difference between a student and a researcher is that a researcher solves their own problems. It is the job of a mentor and supervisor to assist in that, but I feel that my mentee still feels entitled that I should solve his problems for him (I only solved "his" problems before because a bug in code that I wrote is my responsibility). It's time to start taking a more hands-off approach: I'm happy to give advice on how he might solve a problem, but it's his responsibility to sit down and implement that idea.
How should I approach this problem - (a) with my mentee, and (b) with our supervising professor (we have the same supervisor)?