+ 10
How to get colored output in python?
19 Réponses
+ 12
if any complier showing coloured output like stickers as kuba codes
there is some way to get but
we are not that level trained programmers
and the another problem is this playground handling by sololearn
we can't modify there so
might very much difficult
+ 8
Paul Grasser we can't use colour output but
there is way we can do
are you interested
+ 7
u can
+ 7
thanks Basel Akasha 😊😊
+ 6
Check this out:
https://code.sololearn.com/c838jkef5SEE/?ref=app
Or you can do what Kuba Siekierzyński does.
+ 4
Basel's answer.
+ 4
how?
+ 4
also possible in sololearn?
+ 4
ok
+ 4
ohh!
+ 4
add
print("/033[dm TEXT HERE /033[0m")
in the beginning, d can be any number from 30 to 37
+ 3
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
print WARNING + "Error ! " +ENDC
### You cant use them in sololearn app
+ 2
Charan LEo25 Yes we can, just not here in SL.
+ 2
Use my code I linked above, and do
print(red("Red Text"))
Instead of red u can do all other colors defined.
+ 2
See this picture in this post :
https://www.sololearn.com/post/21671/?ref=app
+ 2
Crystal!! Welcome!
+ 2
As my first language in Java, I found more easier to do colours in Python :)
+ 2
These days I'm learning tkinter and I think it's easy and best for at least basics.