print red in python

Solutions on MaxInterview for print red in python by the best coders in the world

showing results for - "print red in python"
Timote
28 Jul 2018
1import os
2
3# System call
4os.system("")
5
6# Class of different styles
7class style():
8    BLACK = '\033[30m'
9    RED = '\033[31m'
10    GREEN = '\033[32m'
11    YELLOW = '\033[33m'
12    BLUE = '\033[34m'
13    MAGENTA = '\033[35m'
14    CYAN = '\033[36m'
15    WHITE = '\033[37m'
16    UNDERLINE = '\033[4m'
17    RESET = '\033[0m'
18
19print(style.YELLOW + "Hello, World!")
20