top of page

python

Public·2 members

Repost of printClr(2):


class printClr:
    cPink = '\033[95m'
    cBlue = '\033[94m'
    cCyan = '\033[96m'
    cGreen = '\033[92m'
    cYellow = '\033[93m'
    cRed = '\033[91m'
    cWhite = '\033[0m'
    sBold = '\033[1m'
    sUnderline = '\033[4m'
    end = '\033[0m'

# Colours always start with "c"
# Text styles always start with "s"
# Type "end" at the {printClr.end} of a print() statement to avoid overlapping!
# Type your script below:


example:

print(f"{printClr.cYellow}Hello World{printClr.end}")

OUTPUT:
Hello World

About

A fan-made Python group for programming enthusiasts or peopl...
bottom of page