Praising effort “this is great, you must have worked really hard”
Praising perserverance “I saw you were having problems but you took the time to figure it out. It’s great that you didn’t give up”
Praising (and thus rewarding) development, inquisitiveness, learning
If you praise the person then you’re really setting a trap for them