input: from typing import List
  
  def print_star_pattern() -> List[str]:
      """Prints a pattern of asterisks in an increasing and then decreasing sequence.
      >>> print_star_pattern()
      ['*', '**', '***', '****', '*****', '****', '***', '**', '*']
      """
      result = []
      for i in range(5):
          line = "".join(["*" for j in range(i + 1)])
          print(line)
          result.append(line)
      for i in range(5, 0, -1):
          line = "".join(["*" for j in range(i)])
          print(line)
          result.append(line)
      return result
output:     result = []
      for i in range(5):
          line = "".join(["*" for j in range(i + 1)])
          print(line)
          result.append(line)
      for i in range(4, 0, -1):
          line = "".join(["*" for j in range(i)])
          print(line)
          result.append(line)
      return result