Python colorama — Changing color of text

Scriptopia
Apr 6, 2023

Python script that will change the color of text in console using Colorama. Colorama is a Python library that simplifies the process of adding colors and styles to command-line output. It provides cross-platform support for colored terminal text, making it easier to enhance the visual appearance of terminal text.

In this example we print three messages to output. The first message is printed in red text, the second in green text, and the third in yellow text. Finally, the code calls time.sleep() to pause execution for 10 seconds before exiting.

If you found this useful please subscribe to our YouTube channel for daily coding content by clicking here.

https://scriptopia.co.uk/2023/04/06/python-colorama-changing-color-of-text/

--

--

Scriptopia

Programming - Projects - Source Code available for everything - Scriptopia.co.uk