10

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?

timc
  • 2,124
  • 15
  • 13
turnt
  • 3,235
  • 5
  • 23
  • 39

4 Answers4

6

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.

Alf
  • 1,821
  • 3
  • 30
  • 48
  • 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 – 2br-2b Sep 01 '23 at 01:37
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.

brentlance
  • 2,189
  • 1
  • 19
  • 25
2

Check out the Scripting Layer 4 Android (sl4a).

There are a number of good Python examples here.

timc
  • 2,124
  • 15
  • 13
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

Dipayan
  • 11
  • 2