Answers for "how to print colour text in python"

3

python print color

# Python program to print 
# green text with red background 

#pip install termcolor
#pip install colorama
  
from colorama import init 
from termcolor import colored 
  
init() 
  
print(colored('Hello, World!', 'green', 'on_red'))
Posted by: Guest on January-15-2021

Code answers related to "how to print colour text in python"

Python Answers by Framework

Browse Popular Code Answers by Language