The best way to learn computer science is to do computer science.
You’ll get 10x better results by elevating good behavior rather than punishing bad behavior, especially in children and animals.