input: Write a function to format a two-dimensional array as a table. If the array is empty, 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 array]
      for row in array:
          print("  ".join(str(x).ljust(col_width[i]) for i, x in enumerate(row)))
  
  array1 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  array2 = []
  assert printTable(array1) == None
  assert printTable(array2) == None
output: def printTable(array):
      if not array:
          print()
          return
      col_width = [max(len(str(x)) for x in col) for col in array]
      for row in array:
          print("  ".join(str(x).ljust(col_width[i]) for i, x in enumerate(row)))