input: Write a function to print the following pattern in Python: a pyramid of asterisks that first increases in size up to 5 rows and then decreases back down to 1 row.
  
  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.__code__.co_consts[0] == "*"
  assert print_pattern.__code__.co_consts[1] == "\n"
  assert print_pattern.__code__.co_names == ("range", "print")
  assert print_pattern.__code__.co_varnames == ("i", "j")
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("")