Why does it print twice the “big” diagonal (matrix)
问题 I have a matrix like the following: ` matrix = [ ['P', 'o', 'P', 'o', 'P'], ['m', 'i', 'c', 's', 'r'], ['g', 'a', 'T', 'A', 'C'], ['n', 'n', 'e', 'r', 't'], ['a', 'g', 'o', 'd', 'o'], ['a', 'p', 'p', 'l', 'e'] ]` and this code which prints every letter in a 'diagonal rising to the right' way with repetitions: `test_word = '' for upper in range(len(matrix)): for rep1 in range(min(upper + 1, len(matrix[0]))): for rep2 in range(rep1, min(upper + 1, len(matrix[0]))): for j in range(rep1, rep2 + 1