Pythonista: https://apps.apple.com/app/id1085978097
there are a few other python environments that support pip install
http://osxdaily.com/2018/01/08/get-terminal-app-ios-command-...
Bit limited, but it’s a start. Personally I prefer Pythonista with the Stash shell command extensions package.
"For a long time, Apple's App Store review guidelines prohibited apps from downloading executable code from the Internet. The company's original stance resulted in IDEs that couldn't sync scripts and programs across multiple devices – a serious limitation for the emergent movement of programmers embracing the iPad Pro as a portable workstation.
Fortunately, Apple started relaxing their rules earlier this year, allowing "apps designed to teach, develop, or test executable code" to download and run code."
As an example of what's possible, in Pythonista 3[2] on my iPad Pro I installed StaSH[3] (bash-like shell implementation), youtube-dl using pip, and then wrote a simple script[4] to let me save YouTube videos with a long-press on a link -> Share -> Run Pythonista 3 Script...
1: https://www.macstories.net/linked/pythonista-3-2-syncs-scrip...
2: https://omz-software.com/pythonista/
3: https://github.com/ywangd/stash
4: https://gist.github.com/solarfl4re/0a3647788f8ec2f375f2da3db...
http://omz-software.com/pythonista/
its not quite the same, but you can build apps (sorta, i guess?) right on iOS, you can run python, and with a package like stash you can even use pip!
https://github.com/ywangd/stash
this is cool for android though!