Creating a matrix?
Josiah Carlson
jcarlson at uci.edu
Fri Apr 2 15:15:40 EST 2004
> [ [0]*N for i in range( N ) ]
xrange is a bit faster for large N, you don't need to create a list that
gets destroyed.
- Josiah
More information about the Python-list
mailing list