This is an old copy of the Python FAQ. The information here may be outdated.

How do I perform matrix operations using Python?

The Python FAQ has an entry on how to create multidimensional lists:


You may also want to look into the ‘numpy’ module which contains many resources for scientific computing, including powerful matrix operations:



A Django site. rendered by a django application. hosted by webfaction.