input: Write a function to print a pattern of stars that first increases and then decreases in size. If the input is a single integer representing the number of rows for the first half of the pattern, the function should print this pattern. The second half should have the same number of rows but decreasing in stars.
  def print_star_pattern(rows):
      for i in range(rows):
          for j in range(i+1):
              print("*", end="")
          print("")
  
      for i in range(rows, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
  
  assert print_star_pattern(3)
  assert print_star_pattern(5)
output: def print_star_pattern(rows):
      for i in range(rows):
          print("*" * (i + 1))
      for i in range(rows - 1, 0, -1):
          print("*" * i)