0

How to print a text message cadena in color in python?

I search in internet that is some like: print(colored('hello', 'red' ), colored('world' , 'green'))

8th Mar 2021, 6:29 PM
Yunuen Sarasuadi Acosta Meza
Yunuen Sarasuadi Acosta Meza - avatar
3 Answers
8th Mar 2021, 6:32 PM
Sharique Khan
Sharique Khan - avatar
+ 2
The colored() function is available in the termcolor module. Simply install it using pip install termcolor See this: https://pypi.org/project/termcolor/
8th Mar 2021, 6:39 PM
XXX
XXX - avatar
0
Ok thanks just i have a little problem i can't unzip, my ZPfile is expired.. You know if is possible to downoad it freely? Thanks so much big help
8th Mar 2021, 7:11 PM
Yunuen Sarasuadi Acosta Meza
Yunuen Sarasuadi Acosta Meza - avatar