python program to print transpose of a matrix code example Example: transpose matrix python arr = list(list(x) for x in zip(*arr))