input: def print_pattern(n: int) -> None:
      """ Print the pattern of asterisks for a given number of lines.
      The pattern starts by printing from 1 to n asterisks in increasing order,
      and then decreases back to 1.
      >>> print_pattern(5)
      *
      **
      ***
      ****
      *****
      ****
      ***
      **
      *
      """
      for i in range(n):
          for j in range(i + 1):
              print("*", end="")
          print("")
  
      for i in range(n, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
output:     for i in range(n - 1, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")