0

How can output text color / style be changed in Python?

I'm looking for a way to change the color / style for certain sections of the output text. Does anyone know how to print text in bold or in different colors?

6th Dec 2016, 10:29 AM
Samuel Neo
Samuel Neo - avatar
2 odpowiedzi
+ 1
Thanks all, but I just figured out how to: Install colorama: In the command prompt / terminal, type: (sudo) py -m pip install colorama Then, from colorama import Fore, Back, Style, init You can use those properties to modify output text. Note: This doesn't work on IDLE Shell.
6th Dec 2016, 2:08 PM
Samuel Neo
Samuel Neo - avatar
0
You can't.
6th Dec 2016, 12:01 PM
Nagendra Prajwal
Nagendra Prajwal - avatar