input: Write a function to print the following pattern: a pyramid of asterisks with 5 levels, followed by a decreasing pyramid of asterisks with 5 levels.
  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):
          for j in range(i+1):
              print("*", end="")
          print("")
  
      for i in range(5, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")