I am trying to print a text in a different color. I have already installed termcolor, but when type:
from termcolor import colored
print(colored("hello","blue"))
it appears
[34mhello[0m .
I am trying to print a text in a different color. I have already installed termcolor, but when type:
from termcolor import colored
print(colored("hello","blue"))
it appears
[34mhello[0m .
First of all: pip install colorama
And seconds:
from colorama import Fore, Back, Style
print(Fore.GREEN + Back.RED + Style.DIM + "hello world")
(This is an example, whole pip package usage * description click here)
For some unknown reason for me when I open CMD & try it doesn't work BUT when I code in VSCode & run from there with terminal window as CMD it works fine.