input: from typing import List
  
  def pascal_triangle(n: int) -> List[List[int]]:
      """Generate and print Pascal's triangle for a given number of rows.
      >>> pascal_triangle(5)
      [[1]]
      [[1], [1, 1]]
      [[1], [1, 1], [1, 2, 1]]
      [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]]
      [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]]
      True
      """
      trow = [1]
      y = [0]
      triangle = []
      for x in range(max(n, 0)):
          triangle.append(trow)
          print(triangle)
          trow = [l + r for l, r in zip(trow + y, y + trow)]
      if n >= 1:
          return True
      else:
          return False
output:     trow = [1]
      y = [0]
      triangle = []
      for x in range(max(n, 0)):
          triangle.append(trow)
          print(triangle)
          trow = [l + r for l, r in zip(trow + y, y + trow)]
      if n >= 1:
          return True
      else:
          return False