input: Write a function to format a two-dimensional array as a table.
  
  def printTable(array):
      # find the longest string in each of the inner lists
      # so we can format the output
      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)))
  
  array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  printTable(array)
  
  # Output:
  # 1   2   3
  # 4   5   6
  # 7   8   9
output: def printTable(array):
      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)))