transposing. a matrix from 1 x 3 to 3 x 1 using python code example Example: transpose matrix python arr = list(list(x) for x in zip(*arr))