[Tutor] Problem using termcolor and colorama

John Blower johnblower2016 at outlook.com
Thu Nov 15 08:18:16 EST 2018


I try to create colour text by using these two  modules , only returns the colour code, no colour text.
How to solve this problem.

>>> import termcolor
>>> import colorama
>>> colorama.init()
>>> termcolor.cprint('Hello World','red')
[31mHello World[0m


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



More information about the Tutor mailing list