# Python | sympy.binomial_coefficients_list() method

With the help of sympy.binomial_coefficients_list() method, we can find the binomial coefficients as rows of the Pascal’s Triangle.

Syntax: binomial_coefficients_list(n)

Parameter:
n – It denotes an integers.

Returns: Returns a list of binomial coefficients as rows of the Pascal’s Triangle.

Example #1:

 `# import binomial_coefficients_list() method from sympy ` `from` `sympy.ntheory ``import` `binomial_coefficients_list ` ` `  `n ``=` `6` ` `  `# Use binomial_coefficients_list() method  ` `binomial_coefficients_list_n ``=` `binomial_coefficients_list(n)  ` `     `  `print``(``"{}th row of Pascal's Triangle = {} "``.``format``(n, binomial_coefficients_list_n)) `

Output:

```6th row of Pascal's Triangle = [1, 6, 15, 20, 15, 6, 1]
```

Example #2:

 `# import binomial_coefficients_list() method from sympy ` `from` `sympy.ntheory ``import` `binomial_coefficients_list ` ` `  `n ``=` `9` ` `  `# Use binomial_coefficients_list() method  ` `binomial_coefficients_list_n ``=` `binomial_coefficients_list(n)  ` `     `  `print``(``"{}th row of Pascal's Triangle = {} "``.``format``(n, binomial_coefficients_list_n)) `

Output:

```9th row of Pascal's Triangle = [1, 9, 36, 84, 126, 126, 84, 36, 9, 1]
```
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.