input: 
  def print_pattern():
      """
      This function prints a pattern of stars (*). It first prints 5 increasing rows of stars
      from 1 to 5, and then prints decreasing rows of stars from 5 to 1.
      
      >>> print_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("")