There are also apps that let you program robots.
https://www.apple.com/shop/product/HK962VC/A/ubtech-jimu-rob...
Amazon announced an easy way to program Alexa.
https://developer.amazon.com/alexa-skills-kit/alexa-skill-py...
There is also Swift Playgrounds.
Yes, I know Apple wants to police their App Store, but writing something for your own personal use (and maybe to give some copies to friends) shouldn't be a huge bureaucratic hurdle.
(Android has smaller hurdles but still not insignificant --- when the first step in the tutorial is "download and install this gigabyte-sized piece of software", you can be sure a ton of potential users have already been put-off. Compare with early home computers that booted to a BASIC prompt, or PCs where DEBUG was there and ready to create tiny/small "apps" immediately.)
https://www.lifewire.com/best-workflows-ios-app-4153797
The current integrations between third party apps are based on x-callback-url. Third party developers have been using it for at least 5 years.
+I would rather spend 40€ on a raspberry PI than a smart light bulb or anything like that.
Programming with Swift playgrounds or doing an Automator action that can control smart home devices will hold kids interests way more than “real programming”.
I was excited in 1985 at 12 just to be able print something on the screen. More recently I was asked to give a presentation to some kids during career day. Knowing that they wouldn’t be interested in a talk about doing yet another SAAS app, I recommended that they talk to a friend who does game development.
If they were younger, I would definitely recommend a presentation on automating smart home devices activated by Siri or Alexa.