For writing Python Scripts for your phone you need to write the script in a text editor. Useful editors are Pywin or ConTEXT, but also notepad works. To learn how to download and install Python editors on your PC see
- Python .
- DiveIntoPython and its first chapter
- An illustrative article to install Python in here