Horje
python print string in red color Code Example
print colored text python
def colored(r, g, b, text):
    return "\033[38;2;{};{};{}m{} \033[38;2;255;255;255m".format(r, g, b, text)
  
text = 'Hello, World'
colored_text = colored(255, 0, 0, text)
print(colored_text)

#or

print(colored(255, 0, 0, 'Hello, World'))
python color in console
class bcolors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'

print(f"{bcolors.WARNING}Error : Test message !{bcolors.ENDC}")
python print string in red color
325626
hi find and you 

r&.5636-
python print string in red color

55683




Python

Related
blender python get current filename Code Example blender python get current filename Code Example
qtimer singleshot Code Example qtimer singleshot Code Example
python using string to access objects Code Example python using string to access objects Code Example
matplotlib convert color string to int Code Example matplotlib convert color string to int Code Example
django create ap Code Example django create ap Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8