It can also do that if you ask it. It can give you exercises that you can solve. But you have to specifically ask, because by default it just gives you code.
Oh, I missed that.
I also missed that about StackOverflow, although I wasn't active there.
It sounds like the motto of SO was "Solve problems!" instead of "Teach people how to solve problems!".