input: Write a function that prints a Pascal's triangle for a given number of rows. If the input number of rows is 5, the function should print a Pascal's triangle with 5 rows. If the input number of rows is 0, the function should not print anything.
  
  def PascalTriangle(n):
      if n == 0:
          return
      arr = [0 for i in range(n)]
      for line in range(0, n):
          for i in range(0, line + 1):
              if i == 0 or i == line:
                  arr[i] = 1
              else:
                  arr[i] = arr[i] + arr[i - 1]
          for i in range(0, line + 1):
              print(arr[i], end=" ")
          print()
  
  assert PascalTriangle(5) is None
  assert PascalTriangle(0) is None
output: def PascalTriangle(n):
      if n == 0:
          return
      arr = [0 for i in range(n)]
      for line in range(0, n):
          for i in range(0, line + 1):
              if i == 0 or i == line:
                  arr[i] = 1
              else:
                  arr[i] = arr[i] + arr[i - 1]
          for i in range(0, line + 1):
              print(arr[i], end=" ")
          print()