Answers for "pyhton text color"

2

colored text python

from colorama import init
from colorama import Fore
init()
print(Fore.BLUE + 'Hello')
print(Fore.RED + 'Hello')
print(Fore.YELLOW + 'Hello')
print(Fore.GREEN + 'Hello')
print(Fore.WHITE + 'Hello')

#test in vscode
#code by fawlid
Posted by: Guest on November-09-2021
0

colored text in py

import colorama
from colorama import Fore

print(Fore.RED + 'This text is red in color')
Posted by: Guest on September-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language