input: Write a function to generate the first n elements of the Sierpinski triangle. The function should take an integer n as input and print the elements of the Sierpinski triangle for that number of rows. If the input is 0, the function should print nothing.
  
  def sierpinski_triangle(n):
      if n == 0:
          return
      for i in range(n):
          for j in range(n - i - 1):
              print(' ', end='')
          for j in range(2 ** i):
              print('* ', end='')
          print()
          
  assert sierpinski_triangle(0) == None
  assert sierpinski_triangle(1) == None
  assert sierpinski_triangle(2) == None
  assert sierpinski_triangle(3) == None
  assert sierpinski_triangle(4) == None
  assert sierpinski_triangle(5) == None
  assert sierpinski_triangle(6) == None
output: def sierpinski_triangle(n):
      if n == 0:
          return
      for i in range(n):
          for j in range(n - i - 1):
              print(' ', end='')
          for j in range(2 ** i):
              print('* ', end='')
          print()