Python console color code
Different color code values for Python console output.
![Python console color code](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2Fvwh9oig9%2Fproduction%2Fe9a3d911efdd3579486ed8f6e6b07a64b3869c3b-64x64.png%3Ffit%3Dmax%26auto%3Dformat&w=96&q=75)
Some Primary Colors
class style():
BLACK = '\033[30m'
RED = '\033[31m'
GREEN = '\033[32m'
YELLOW = '\033[33m'
BLUE = '\033[34m'
MAGENTA = '\033[35m'
CYAN = '\033[36m'
WHITE = '\033[37m'
UNDERLINE = '\033[4m'
RESET = '\033[0m'
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
Function that print in specific color using RGB value
colored = lambda r, g, b, txt : f"\033[38;2;{r};{g};{b}m{txt}\033[m"
print(colored(161 , 159 , 215 , "hello , Developers !"))