input: Write a function to print a pattern of asterisks in Python. The pattern should start with one asterisk on the first line, increasing by one asterisk per line until it reaches five asterisks, then it should decrease by one asterisk per line until it reaches one asterisk again.
  
  
  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("")
  
  
  assert print_pattern()==None
  assert print_pattern()==None
output: def print_pattern():
      for i in range(5):
          print("*" * (i + 1))
      for i in range(5, 0, -1):
          print("*" * i)