O'Reilly logo

Python Without Fear, First Edition by Brian Overland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13. Matrixes: 2-D Lists

Python lists can contain almost any kind of Python data, including other lists. So what would you call a list of lists?

The answer is a two-dimensional list, also called a matrix. Many applications—and game programs in particular—depend on the use of matrixes.

This chapter covers several aspects of matrixes.

Image Creating small matrixes

Image Creating large, N*M matrixes

Image Rotating a matrix

Simple Matrixes

With Python, you can easily ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required