Depending on the 10 year old, but my default recommendation for kids learning to code is to use games as the enticing pathway.
So, with that in mind, I'd suggest using Godot (https://godotengine.org), with the reasoning being:
- small, fast, multiplatform
- python-like scripting
- gentle learning curve (for a serious games engine)
- completely FOSS
There are now thousands of 'how-to' videos available which would take a complete beginner from nothing to a functioning game in a few weeks. A great way to get into coding.
[Edit for formatting.]