Skip to content

WemaGoodness/alx-interview

Repository files navigation

0x00. Pascal's Triangle

Pascal's Triangle

This project contains a Python function that generates Pascal's Triangle up to a given number of rows.

Function

pascal_triangle(n)

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.

Example Usage

pascal_triangle(5)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages