## How to do transpose of a 2D array in Python, without using the built-in transpose() function?

import numpy as np

a5 = np.array[[1 2 3],[4 5 6]]

a = len(a5) # rows of a5

b = len(a5[0]) # columns of a5

a6 = np.zeros([b, a])

for i in range(len(a5)):

for j in range(len(a5[0])):

a6[i][j] = a5[j]…