from Numeric import *
A=zeros([3,3])
print str(A[0,1]) #access an element

I would like to store a pair of values in each element, that is have a matrix where the (0,0) element is (2.3, 2.4), the (0,1) element is (5.6,6.7), etc.

Is this possible? I would like to access it using something like

Thanks for the quick response! That'll work for now. However it doesn't scale particularly well (if I wanted a 1000x1000 matrix, I couldn't fill all those entries manually the first time!). Is there a way to initialize the matrix to a (0,0) pair for an arbitrary size?

How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error ...