Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print colors in Python

# python -m pip install CrafterColor
try:
    from CrafterColor.Print import printColors
    from CrafterColor.Print import print
except ModuleNotFoundError:
  import os
  os.system("python -m pip install CrafterColor")
  print("rerun the program")
  exit(-1)
# the a available keywards Colors
for LOF in printColors:
    print("Hello, World",LOF,sep=": ",color=LOF)
Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #print #colors #Python
ADD COMMENT
Topic
Name
6+3 =