input: 
  from typing import List
  
  def transpose(A: List[List[float]]) -> List[List[float]]:
      """ Optimize a Python program that processes a 2d array and stores the transpose output in a new array.
      >>> transpose([[1, 2, 3], [4, 5, 6]])
      [[1, 4], [2, 5], [3, 6]]
      >>> transpose([[7, 8], [9, 10], [11, 12]])
      [[7, 9, 11], [8, 10, 12]]
      """
      m, n = len(A), len(A[0])
      return [[A[i][j] for i in range(m)] for j in range(n)]
  
output:     m, n = len(A), len(A[0])
      return [[A[i][j] for i in range(m)] for j in range(n)]