input: Write a function to generate and print a Pascal triangle based on the number of rows provided as input. If the number of rows is 0, print nothing.
  assert PascalTriangle(5)
  assert PascalTriangle(0)
  assert PascalTriangle(3)
output: def PascalTriangle(n):
      if n == 0:
          return
      triangle = []
      for i in range(n):
          row = [1] * (i + 1)
          for j in range(1, i):
              row[j] = triangle[i-1][j-1] + triangle[i-1][j]
          triangle.append(row)
          print(row)