Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print specific part in bold or colours and end.

class color:
   PURPLE = '33[95m'
   CYAN = '33[96m'
   DARKCYAN = '33[36m'
   BLUE = '33[94m'
   GREEN = '33[92m'
   YELLOW = '33[93m'
   RED = '33[91m'
   BOLD = '33[1m'
   UNDERLINE = '33[4m'
   END = '33[0m'

print(color.BOLD + 'Hello World !' + color.END)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #specific #part #bold #colours
ADD COMMENT
Topic
Name
7+3 =