Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python color text

#example
print("33[1;31mHello World!33[0m")

print("33[<properties>;<color>m")

Black	30	No effect	0	Black	40
Red		31	Bold		1	Red		41
Green	32	Underline	2	Green	42
Yellow	33	Negative1	3	Yellow	43
Blue	34	Negative2	5	Blue	44
Purple	35					Purple	45
Cyan	36					Cyan	46
White	37					White	47
Source by www.studytonight.com #
 
PREVIOUS NEXT
Tagged: #python #color #text
ADD COMMENT
Topic
Name
2+4 =