python text background color

How to add colour to text Python? GeeksforGeeks. Functions Used: background: allows background formatting. Accepts ANSI codes between 40 and 47, 100 and 107. style_text: corresponds to formatting the style of the text. Accepts ANSI code between 0 and 8..

How to add colour to text Python? GeeksforGeeks
How to add colour to text Python? GeeksforGeeks from media.geeksforgeeks.org

The numbers are 1to make the text bold, 3with another number to make the text the color of the other number, and 4with another number to make the text background the color of.

0 komentar