input: Write a function to format a two-dimensional array as a table. If the given array is empty, return an empty string.
  def printTable(array):
      if not array:
          return ""
      col_width = [max(len(str(x)) for x in col) for col in zip(*array)]
      return "\n".join("  ".join(str(x).ljust(col_width[i]) for i, x in enumerate(row)) for row in array)
  
  assert printTable([[1, 2, 3], [4, 5, 6], [7, 8, 9]])=='1  2  3\n4  5  6\n7  8  9'
  assert printTable([[123, 4567, 89], [12, 345, 6789]])=='123  4567  89\n12   345   6789'
  assert printTable([])==''
output: def printTable(array):
      if not array:
          return ""
      col_width = [max(len(str(x)) for x in col) for col in zip(*array)]
      return "\n".join("  ".join(str(x).ljust(col_width[i]) for i, x in enumerate(row)) for row in array)