I really liked homework suggestions that (critically) included the answer key and walkthrough of solution!
Doing problem sets in university without this made it way less valuable because you need the immediate feedback loop to learn and waiting until office hours or recitation takes too long and you forget.
Good classes (from grade clarity perspective) were ones where it was clear what would be tested and how to prepare. Then you could leverage the optional homework to focus on areas you didn’t understand yet.
There were classes I enjoyed that did this poorly by either forcing homework grading without answer keys (feedback loop too slow, often can’t focus on what you don’t know) - or made it very hard to know what the test format would be like to prepare for.
I like learning and enjoyed my CS classes - I also kept a high gpa at a university known to be hard (was also preparing for medschool where gpa is critical in the US), but the stress around grades was miserable.
Getting good grades is a skill that’s related to learning, but also its own thing. Sometimes to optimize grades you have to do things that hurt learning (rather than focus on how a compiler works and digging into interesting details here, you must focus your attention on the specific types of puzzles that will be tested).
I get why this is done, but I still wish there was a better way to handle this. I think ISAs and job market validation of skills is an improvement (like lambda school) but those students still blame everyone else for their own failures even in that case so it’s a hard problem.