Python - multi-line array
- by Ockonal
Hi guys, in c++ I can wrote:
int someArray[8][8];
for (int i=0; i < 7; i++)
for (int j=0; j < 7; j++)
someArray[i][j] = 0;
And how can I initialize multi-line arrays in python?
I tried:
array = [[],[]]
for i in xrange(8):
for j in xrange(8):
array[i][j] = 0