Answers for "python how to change output color"

4

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"])
Posted by: Guest on February-01-2021

Code answers related to "python how to change output color"

Python Answers by Framework

Browse Popular Code Answers by Language