Scripting Layer for Android (SL4A) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to get things done.
NOTE: For Rooted Devices Only
1- Download SL4A and PythonForAndroid:
Download: Python For Android
2- Install SL4A and PythonForAndroid by granting superuser permissions.
3- After successful installation, SL4A will look like this.(forget the weevely folder, it doesn't come with SL4A installation)
4- And successfully installed Python For Android will look like this:
5- Now install Android Terminal Emulator from the following Google Play's link:
Download: Android Terminal Emulator
6- Open terminal and type su and press enter to enter in super user or "sudo" mode.
7- Now type python and press enter. You will get inside python interpreter.
Now execute your python statements and enjoy.
Visit Official Site For further details