I think the real problem with these requests is that while they may just want the code, what they need and will get more benefit from, is us helping to give them an understanding of the logic behind the code.
It's one thing to ask for help with a specific command or syntax, but these requests are more broad and show a lack of necessary core logic which would direct them towards the specific commands needed.
On one hand, it's good to see a bunch of new people getting in to programming, on the other hand, when they not only ask for the solution to be handed to them, but also just flat ask where to put it rather than questioning how it works and why and thereby working to figure out how to implement it themselves, I have to wonder how much they are really interested in learning to code vs how much they are simply interested in passing a course.
I'm all for helping people learn and understand, I'm not terribly interested in earning someone a grade.