This project contains a Python function that generates Pascal's Triangle up to a given number of rows.
Returns a list of lists of integers representing the Pascal's triangle of n
.
- Returns an empty list if
n <= 0
. - You can assume
n
will always be an integer.
pascal_triangle(5)