YouTip LogoYouTip

Python Exercise Example35

# Python2.x Python Exercise Instance 35 [![Image 3: Python 100 Examples](#) Python 100 Examples](#) **Title:** Text color settings. **Program Analysis:** None. ## Instance ```python #!/usr/bin/python # -*- coding: UTF-8 -*- class bcolors: HEADER = '33[95m' OKBLUE = '33[94m' OKGREEN = '33[92m' WARNING = '33[93m' FAIL = '33[91m' ENDC = '33[0m' BOLD = '33[1m' UNDERLINE = '33[4m' print(bcolors.WARNING + "Warning Font Color?" + bcolors.ENDC) The output of the above instance is: Warning color font? # Light yellow [![Image 4:
← Python Exercise Example36Python Exercise Example34 β†’