Iām trying to create a run length for this matrix (see below) in Python that prints the matrix to a list in the following format [84, 2, 90, 2, 88, 1...]
.
The matrix layout
84 84 90 90
88 93 93 93
93 93 93 93
87 87 87 94
I don't have a lot of experience with run length loops so any helpful suggestions would be appreciated.