11

So I want to practice python on my Android. Is there a way I can get the interpreter or an interpreter emulator on my device?

1

4 Answers 4

7

You can use the termux app, link to homepage, which is available in the google market and requires no root. It is a terminal emulator with a full Linux environment and via apt install python you can install python. apt list gives you a list of all available packages.

Sign up to request clarification or add additional context in comments.

1 Comment

This works, but unless you want to use Vim with an Android keyboard, it's not ideal. The solution is to use a separate app to edit your code, but that's still a lot of work. Unfortunately, there aren't many good options that I've found
4

There's also Python for Android (Py4A), which is intended to work with SL4A. The documentation for Py4A is not as extensive as SL4A, but there are a few examples for Py4A available here.

In addition, there's Kivy, a crossplatform Python-based development framework for Android, PC, Linux, and iOS. I've played around with Kivy a little bit in the past, and while it's very powerful, it's documentation has been lacking, and the code is difficult to decipher.

Comments

2

Check out the Scripting Layer 4 Android (sl4a).

There are a number of good Python examples here.

Comments

1

Download PyDroid 3 from Playstore and if you like it buy the pro version. It costs around 2$ but you have all you need to do Python 3 programming

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.