+ 2
How can I add colors in python?
2 Respuestas
+ 2
pip install colorama
import colorama
print(colorama.Fore.RED + "This text will be red" + colorama.Fore.RESET)
or
print("\033[91mThis text will be red\033[0m")
0
There is some ways:
1. Native: Terminal have codes for add colors, search it. Example: `\033[91m Text in red`
2. Colorama: This is a library that adds the codes with constants. Just install it on pip