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 ...

Get Python Without Fear now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.