you need to install colorama
pip install colorama

Then, you can use it like this:

from colorama import Fore, Back, Style, init
# Initialize colorama (needed for Windows)
init()

# Example usage
print(Fore.RED + "This is red text!")
print(Fore.GREEN + "This is green text!")
print(Fore.YELLOW + "This is yellow text!")
print(Fore.BLUE + "This is blue text!")
print(Fore.MAGENTA + "This is magenta text!")
print(Fore.CYAN + "This is cyan text!")
print(Fore.WHITE + "This is white text!")

# Reset the color
print(Style.RESET_ALL)

 

Support On Demand!

Python