input: Write a function to print the following pattern: a sequence of stars that starts from one star at the top and increases by one star per line until it reaches five stars, and then it decreases by one star per line until it reaches one star again.
  
  def 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("")
  
  assert print_star_pattern()
  assert print_star_pattern()
  assert print_star_pattern()
  assert print_star_pattern()
  assert print_star_pattern()
output: def print_star_pattern():
      for i in range(1, 6):
          print("*" * i)
      for i in range(4, 0, -1):
          print("*" * i)