array([[0, 1, 2, 3, 4], [10, 11, 12, 13, 14], [20, 21, 22, 23, 24], [30, 31,
    32, 33, 34], [5, 6, 7, 8, 9], [15, 16, 17, 18, 19], [25, 26, 27, 28, 29
    ], [35, 36, 37, 38, 39]])
Преобразование массива в квадратный массив Python