For a seven-year-old?
MIT's Scratch:
https://scratch.mit.edu/Once they are comfortable with scratch you can get them a Raspberry Pi and develop hardware-software projects depending on their interest.
Knowing Scratch also helps to get them into game development.
Lastly, after getting Scratch you can get the kid a Lego Mindstorms kit and build robots, musical intruments, etc.