One of the fun things about “old school” computers is that it was fairly easy to get kids into programming them. The old Basic interpreters were pretty forgiving, and you could do some clever things ...
Scratch 3.0, a visual language programming language from MIT Media Lab, can now run on the official Raspberry Pi operating system, Raspbian. But you'll probably need a Raspberry Pi 4 with 2GB of RAM ...