matrix = [
[11, 12, 13, 14],
[21, 22, 23, 24],
[31, 32, 33, 34],
[41, 42, 43, 44],
]
def walk(matrix):
zigzag = []
for index in range(1, len(matrix)):
slice = [i[:index] for i in matrix[:index]]
diag = [slice[i][len(slice)-i-1] for i in range(len(slice))]
if len(diag) % 2:
diag.reverse()
zigzag += diag