For anyone getting into the world of programming, the Raspberry Pi provides a great environment, and it's dirt cheap. Unlike a regular PC, the Pi has been designed from the outset around programming.
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 ...