Printing in Color with Python

Chris Doucette
2 min readDec 7, 2018

Introduction

Today I wanted to show you multiple ways that you are able to have your console output be colored in your Python scripts.

Termcolor

The first module we’ll explore is termcolor. Termcolor allows you to use ANSI color formatting with your console output. To install termcolor you run:

$ pip install termcolor

--

--