Answers for "python print with red letter"

0

print red in python

import os

# System call
os.system("")

# Class of different styles
class style():
    BLACK = '33[30m'
    RED = '33[31m'
    GREEN = '33[32m'
    YELLOW = '33[33m'
    BLUE = '33[34m'
    MAGENTA = '33[35m'
    CYAN = '33[36m'
    WHITE = '33[37m'
    UNDERLINE = '33[4m'
    RESET = '33[0m'

print(style.YELLOW + "Hello, World!")
Posted by: Guest on February-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language