Chapter 17Color Your World

Image

You now have the beginnings of a functioning game. And it looks boring. Plain old black-and-white text. Blah! In this chapter, we’ll show you how to install and use third-party Python libraries, and we’ll use one to introduce a splash of color to our game.

Installing Third-Party Libraries

We mentioned third-party libraries way back in Chapter 3. Python comes with all sorts of built-in libraries, and you’ve used many of them. third-party libraries are created by Python developers, and you can use them just as you would the built-in libraries.

Of course, before you can use libraries, you need to install them. To add ...

Get Captain Code: Unleash Your Coding Superpower with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.