def transpose(self, matrix: [[int]]) -> [[int]]:
    m = len(matrix)
    n = len(matrix[0])
    res = [([0] * m) for _ in range(n)]
    for i in range(m):
        for j in range(n):
            res[j][i] = matrix[i][j]
    return res
def transpose(self, matrix: [[int]]) -> [[int]]:
    m = len(matrix)
    n = len(matrix[0])
    res = [([0] * m) for _ in range(n)]
    for i in range(m):
        for j in range(n):
            res[j][i] = matrix[i][j]
    return res