+ 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
4 Antworten
+ 1
Djaber Meghar colors, gui and formats etc.. dont work in sololearn console
+ 1
Sousou i'm talking in general, not about sololearn code playground
0
termcolor module
https://pypi.org/project/termcolor/
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