Is there an online Python interpreter or some such that would allow me to try out simple python code from my iPhone?
Something like try ruby! (in your browser) for Python, and works with the iPhone?
Is there an online Python interpreter or some such that would allow me to try out simple python code from my iPhone?
Something like try ruby! (in your browser) for Python, and works with the iPhone?
No. Python and all interpretation is strictly verboten on the iPhone.
That said, if you jailbreak your phone, you can install linux with python and go to town.
Edit: I didn't notice the word "online" before. Here's an online python interpreter:
CodePad allows you to run snippets of Python code (and many other languages!).
If you jailbreak the phone and install cydia, cydia can install python, including a sample python app integrating the iphone objectivec api.
Maybe try http://live.codenode.org, which I've seen been used with an IPhone.
The Sage notebook (http://sagenb.org) can be set to Python mode, and it allows you to run arbitrary Python code over the web. It has an evaluate button that I specifically added so I could use it from my iPhone/iPad. I'm currently working on more support (e.g., tab completion like with iPython for the iPhone).