python print colored text to terminal code example
Example 1: python print to terminal with color
from termcolor import colored
print colored('hello', 'red'), colored('world', 'green')
Example 2: print colored text to console python
colored = lambda r, g, b, txt : f"\033[38;2;{r};{g};{b}m{txt}\033[m"