Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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"])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #color #print #python
ADD COMMENT
Topic
Name
7+5 =