@richiwalt If you're getting a Python SyntaxError when running that code, it's because the code is for Python 2, but Pythonista's default is Python 3. (In Python 3 you need to put parentheses around the arguments for print, like with any other function. In Python 2, print is special and doesn't require parentheses.)

However in any case Pythonista doesn't support changing the text color using escape sequences - if you try to use them, you'll see the escape sequences printed out with no change in color. If you want to change the console text color in Pythonista, you can use the set_color function from the console module.