Text Decoration in Python | Decorate printed text in Python |Text decoration of printed console text
Text Decoration using Python
Preview:
In this program we have decorated our printed text using the termcolor module in python. Using it we can decorate any printed text in the console.
So lets first install the module:
pip install termcolor
Code:
from termcolor import colored,cprint
print(colored('BLUE TEXT','red'))
cprint('Red Background','grey','on_red')
print(colored('Bold Text',attrs=['bold']))
print(colored('Bold Text',attrs=['underline']))
print(colored('Bold Text',attrs=['reverse']))
RESULT:
THANK YOU
Article by:
Shubham Sagar
Code Star
India
wAH wAH! cant describe in words how amazing this post is
ReplyDelete