# welcome to softhunt.net
# importing python module named numpy
import numpy as np
# making a 3x3 array
arr = np.array([[1, 2],
[4, 5],
[7, 8]])
# before transpose
print("Before transpose:
", arr, end ='
')
# after transpose
print("After transpose:
", arr.transpose(1, 0))