python terminal colour text code example
Example 1: how to color print in python
#pip install termcolor
from termcolor import cprint
cprint('Hello, World! In yellow highlighted in red!', 'yellow', 'on_red')
cprint('Hello, World! Underlined in red!', 'red', attrs=["underline"])
Example 2: python print to terminal with color
from termcolor import colored
print colored('hello', 'red'), colored('world', 'green')