Is there a way to print a colored text in python | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Is there a way to print a colored text in python

print("Hello world") What should i do to make the 'hello world' printed in blue color for example

30th Oct 2020, 9:42 AM
Djaber Meghar
Djaber Meghar - avatar
4 Respuestas
+ 1
Djaber Meghar colors, gui and formats etc.. dont work in sololearn console
30th Oct 2020, 10:09 AM
Sousou
Sousou - avatar
+ 1
Sousou i'm talking in general, not about sololearn code playground
30th Oct 2020, 10:45 AM
Djaber Meghar
Djaber Meghar - avatar
30th Oct 2020, 10:45 AM
CutieRei
CutieRei - avatar
0
Djaber Meghar There is no fully cross platform way to do that afaik, It depends on how the machine's terminal emulator is implemented the closest thing you can have to a cross platform curses lib is unicurses in python
1st Nov 2020, 6:41 AM
Shahil Ahmed
Shahil Ahmed - avatar