Skip to content
← Back to Community
Python text color
Profile icon
VictorLundman

Installation

To install colorama you go to the packages meny and search for colorama
A45D4885-8BE4-4777-A4D2-D72604176BBA

Import colorama

Then you need to import colorama by typning from colorama import Fore, Back, Style

Change text color

There is two ways to change the text color:
Note: the text color will is the same forever if you not change or reset it

1.

print(Fore.WHITE) print(“hello world”)

2.

print(Fore.WHITE + “hello world”)
Voters
Profile icon
RutbahKamal
Profile icon
VictorLundman