In python, you can do this:
[([None] * 9) for x in range(9)]
and you\'ll get this:
[[None, None, None, None, None, None, No
better. that exactly will work.
let mx = Matrix(9, 9); function Matrix(w, h){ let mx = Array(w); for(let i of mx.keys()) mx[i] = Array(h); return mx; }
what was shown
Array(9).fill(Array(9)); // Not correctly working
It does not work, because all cells are fill with one array