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