input: 
  def print_star_pattern() -> None:
      """Prints a star pattern with increasing and then decreasing rows of stars.
      Example:
      >>> print_star_pattern()
      *
      **
      ***
      ****
      *****
      ****
      ***
      **
      *
      """
  
  for i in range(5):
      for j in range(i + 1):
          print("*", end="")
      print("")
  
  for i in range(5, 0, -1):
      for j in range(i):
          print("*", end="")
      print("")
  
output:     for i in range(4, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")