input: Write a function to format a two-dimensional array as a table. The function should take a 2D list as input and print it in a tabular format with aligned columns. If the given array is empty, it should print nothing.
  
  def printTable(array):
      if not array:
          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)))
  
  assert printTable([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) is None
  assert printTable([[10, 20], [300, 40]]) is None
  assert printTable([]) is None
output: def printTable(array):
      if not array:
          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)))