Ask coding questions

← Back to all posts
how to convert a selected piece of text into colored text in python .
ROCKINGRAYQUAZA

i this i have made a large variety of text how can i take and make a few sentences coloured and rest uncoloured ...is there a way??upvote if u would like to see this repl very soon..

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Coder100
ROCKINGRAYQUAZA
Comments
hotnewtop
Coder100

Hi! In this example, I have stored the most common colors and other text formatting into a dict so it doesn't pollute the global scope.

You can check out the wikipedia page for more information!

ROCKINGRAYQUAZA

THANKS BRO ,WHAT DO YOU THINK ABOUT THE GAME BRO, AND COMMENT WOULD BE APPRECIATED,@Coder100

Coder100

NO PROBLEM BRO!
THE GAME IS AWESOME @ROCKINGRAYQUAZA

Coder100

mark as correct answer? @ROCKINGRAYQUAZA

ROCKINGRAYQUAZA

Ok u have also made many awesome programe bro
@Coder100

Coder100