Download pythonista from appstore create a new file and write your code click on run button to run your code