input: Write a function to generate the following pattern as specified:
  
  
  *
  **
  ***
  ****
  *****
  ****
  ***
  **
  *
  
  
  The function should use nested loops to print the required pattern. If the input is not needed, the function should skip it and proceed directly to printing the pattern. Return None after printing the pattern is complete.
  
  
  def 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("")
  
  print_pattern()
  
output: def print_pattern():
      for i in range(5):
          for j in range(i+1):
              print("*", end="")
          print("")
  
      for i in range(4, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
      return None