Back
There is a python termcolor module, where the usage is simple:
from termcolor import coloredprint colored('hello', 'red'), colored('world', 'green')
from termcolor import colored
print colored('hello', 'red'), colored('world', 'green')
In case of Python 3,
print(colored('hello', 'red'), colored('world', 'green'))
Want to become a expert in Python? Join the python course fast!
31k questions
32.8k answers
501 comments
693 users