Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print output in color in python

import colorama
from colorama import Fore

print(Fore.RED + 'This text is red in color')#you can change color 
#In case you want to print variable
num1 = 10
print(Fore.BLUE,num1)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #print #output #color #python
ADD COMMENT
Topic
Name
7+3 =