for i in range(0, n):
    list.append([])
for j in range(0, n):
    list[i].append(random.randint(0, 9))
return list

def print_board(board):
    n = len(board) - 1
while n > -1:
    print(str(board[n]) + ' = ' + str(n))
n -= 1
Pythonic способ создать 2d-массив?