79298566

Date: 2024-12-20 23:10:13
Score: 1.5
Natty:
Report link

Did you follow the documentation for Colorist? It seems like you're mixing the concepts.

For example, if you want to print a full line of coloured text, it's easiest to this this:

from colorist import red

red("hello world")

Or you can also add colour to specific parts of the text string for more customisation:

from colorist import Color

print(f"hello {Color.RED}world{Color.OFF}")

In full transparency, I'm the author of Colorist.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
Posted by: Jakob Bagterp