Pythonista has you covered for Python, although you are limited to its selection of third party modules and source only modules. It has great integration with iOS features and even has a simple but useful GUI designer built in.
It’s a solution to programming for the iPad though, not on it but for another platform, unless it’s mix of modules and capabilities happen to match your off-device needs.