pyBegin / projects / print-colored-text
🎨

Print Colored Text

Prints a few lines of text to the terminal in different foreground and background colors using the colorama library.

16 lines🖥 Desktop only

Print Colored Text

Prints a few lines of text to the terminal in different foreground and background colors using the colorama library.

Example

Hi, My name is Nowshin I love open-source contribution
Hi, My name is Nowshin
Hi My name is Nowshin

The first line prints with a blue foreground on a yellow background, then switches to yellow text on a blue background mid-sentence. The second line uses a cyan background. The third line uses red text on a green background.

How to run on localhost

pip install colorama
python print_coloured_text.py

Dependencies