input: from typing import List
  
  def PascalTriangle(n: int) -> List[List[int]]:
      """Generate Pascal's Triangle for a given number of rows.
      >>> PascalTriangle(5)
      [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]]
      >>> PascalTriangle(1)
      [[1]]
      """
      triangle = []
      for line in range(n):
          row = [1] * (line + 1)
          for i in range(1, line):
              row[i] = triangle[line - 1][i - 1] + triangle[line - 1][i]
          triangle.append(row)
      return triangle
output:     triangle = []
      for line in range(n):
          row = [1] * (line + 1)
          for i in range(1, line):
              row[i] = triangle[line - 1][i - 1] + triangle[line - 1][i]
          triangle.append(row)
      return triangle