input: 
  def print_pattern(n: int) -> None:
      """ Print a pattern of asterisks in an increasing and then decreasing sequence.
      >>> print_pattern(5)
      *
      **
      ***
      ****
      *****
      ****
      ***
      **
      *
      """
      for i in range(n):
          for j in range(i + 1):
              print("*", end="")
          print("")
      for i in range(n, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
  
output:     for i in range(n - 1, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")