Print Red In Python

[Solved] Print Red In Python | Python - Code Explorer | yomemimo.com
Question : print red in python

Answered by : talhah-patelia

import os
# System call
os.system("")
# Class of different styles
class style(): BLACK = '\033[30m' RED = '\033[31m' GREEN = '\033[32m' YELLOW = '\033[33m' BLUE = '\033[34m' MAGENTA = '\033[35m' CYAN = '\033[36m' WHITE = '\033[37m' UNDERLINE = '\033[4m' RESET = '\033[0m'
print(style.YELLOW + "Hello, World!")

Source : https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal | Last Update : Sat, 06 Mar 21

Answers related to print red in python

Code Explorer Popular Question For Python