Is there a way to change the colour of text in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way to change the colour of text in python?

28th Jan 2017, 5:17 PM
Dilan
Dilan - avatar
6 Answers
+ 1
For console/terminal text colorization and formatting, language independant ( escaped characters sequences ): http://misc.flogisoft.com/bash/tip_colors_and_formatting
29th Jan 2017, 9:15 AM
visph
visph - avatar
+ 1
You may try TermColor : https://pypi.python.org/pypi/termcolor
29th Jan 2017, 1:51 PM
Naseef
Naseef - avatar
0
Do you mean the text in console?
28th Jan 2017, 6:28 PM
Naseef
Naseef - avatar
0
When you print text
29th Jan 2017, 10:37 AM
Dilan
Dilan - avatar
0
Does term colour come built in with python
29th Jan 2017, 4:00 PM
Dilan
Dilan - avatar
0
Termcolor do not come buit in python.
29th Jan 2017, 4:06 PM
Naseef
Naseef - avatar