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
Another option is to use a dictionary:
>>> from collections import defaultdict >>> array = defaultdict(int) # replace int with the default-factory you want >>> array[(0,0)] 0 >>> array[(99,99)] 0
You'll need to keep track of the upper & lower bounds as well.