Solution 1:

You will need Xcode on a Mac to build native code for an iPad. For Python you can use Pythonista which I find very useful for smaller Python programs on an iPad.

https://omz-software.com/pythonista/