Colored Text in Python

Published: 11 December 2023
on channel: Fuji Codes
1,205
14

Want to have fancy text in your terminal?
This is how you do it!

Before running the code below, make sure you have `termcolor` installed:
`pip install termcolor`

Code:
Colored text in Python
from termcolor import colored

Blue text
print(colored("Blue text", "blue"))

Red text
print(colored("Red text", "red"))


On this page of the site you can watch the video online Colored Text in Python with a duration of hours minute second in good quality, which was uploaded by the user Fuji Codes 11 December 2023, share the link with friends and acquaintances, this video has already been watched 1,205 times on youtube and it was liked by 14 viewers. Enjoy your viewing!