I tried, but the interpreter kept complaining about the indentation. I'll give it another go.
Edit: This works, but it breaks the B4A code's indentation.
'Example:
Py.Execute($"
print 'hello world!'
def fib(n):
if n == 1 or n == 2:
return 1
return fib(n - 1) + fib(n - 2)
print fib(16)"$ _
)
Anyway, this is just an example. Code can be entered from a text box as well.
I'll probably be able to post an example app this evening.
B4A plays well with C/C++, Java, PHP, SQL and now, even Python! Isn't it wonderful?