How do you do arrays

beliavsky at aol.com beliavsky at aol.com
Tue Feb 1 15:08:41 EST 2005


If you want do numerical calculations with vectors and matrices, you
should probably use the Numarray module. Python's built-in lists are
not intended for heavy numerical computations. They are more flexible
than the arrays in languages like C and Fortran in that they can store
elements of different types. One can write, for example,
x = ["dog",1,2.3] .




More information about the Python-list mailing list