input: Write a function to print the following pattern: first a right triangle with 5 rows of gradually increasing asterisk counts, followed by a reverse right triangle with 5 rows of gradually decreasing asterisk counts.
  
  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() is None
output: 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("")