I have a little Java problem I want to translate to Python. Therefor I need a multidimensional array. In Java it looks like:
double dArray[][][] = new double[x.l
For numeric data, Numpy Arrays:
>>> matrix1 = array(([0,1],[1,3])) >>> print matrix1 [[0 1] [1 3]]
For general data (e.g. strings), you can use a list of lists, list of tuples, ...
matrix2 = [['a','b'], ['x','y']]