To this ,you need an android phone of version 7.0 (naugat) and above .You need to have a data connection. Termux is a linux based environment.it can be used for many things these days.
1.install termux from play store.
2.OPEN IT , and type apt update , then hit enter.Next
- type apt upgrade. hit enter.
4.apt install python (default is python 2, so you need to specify the version here of your choice.)
5.type y stands for yes to allow the install.
6.python is already up and running.
7.To run python , type python. you have invoked the python compiler already.
Nice coding.