The wrong kind of praise creates self-defeating behavior. The right kind motivates students to learn.