input: Write a function to format a two-dimensional array as a table. The input is a two-dimensional array where each sub-array represents a row of the table. The output should be a nicely formatted table printed to the console, with columns aligned based on the length of the longest element in each column. If the input array is empty, the function should print an empty line.
  
  def printTable(array):
      if not array:
          print()
          return
      col_width = [max(len(str(x)) for x in col) for col in zip(*array)]
      for row in array:
          print("  ".join(str(x).ljust(col_width[i]) for i, x in enumerate(row)))
  
  assert printTable([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) == None
  assert printTable([[123, 23, 3], [4, 567, 6]]) == None
  assert printTable([[1, 2222, 3], [44, 5, 6], [7, 8, 9999]]) == None
  assert printTable([]) == None
output: def printTable(array):
      if not array:
          print()
          return
      col_width = [max(len(str(x)) for x in col) for col in zip(*array)]
      for row in array:
          print("  ".join(str(x).ljust(col_width[i]) for i, x in enumerate(row)))