human
code to take the transpose of a matrix in.
assistant
Here is a Python program to code to take the transpose of a matrix in Python

import numpy as np

def transpose(matrix):
    """Take the transpose of a matrix."""
    return matrix.transpose()

# Enter the matrix
matrix = np.array([[1, 2, 3], [4, 5, 6]])

# Calling the function
print((transpose(matrix)))

#Example Output
# [[1 4]
#  [2 5]
#  [3 6]]

#Remember to inspect code for bugs.