input: Write a function to print a pattern of stars in the shape of a pyramid, followed by the reverse pyramid, based on a given integer input. The first part of the pattern prints an increasing number of stars for each line, starting from 1 up to the given integer, and the second part prints a decreasing number of stars for each line, starting from the given integer down to 1.
  assert print_star_pattern(5)
  
  Output:
  *
  **
  ***
  ****
  *****
  *****
  ****
  ***
  **
  *
  
  assert print_star_pattern(3)
  
  Output:
  *
  **
  ***
  ***
  **
  *
output: def print_star_pattern(n):
      for i in range(1, n + 1):
          print('*' * i)
      for i in range(n, 0, -1):
          print('*' * i)