input: 
  def print_star_pattern(n: int) -> None:
      """
      Print a pattern of stars in the following format:
      *
      **
      ***
      ****
      *****
      *****
      ****
      ***
      **
      *
      >>> print_star_pattern(3)
      *
      **
      ***
      ***
      **
      *
      """
      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, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")