LearnPy Hub
← Modules & the Standard Library problems
Medium

A Row of Pascal's Triangle

Read n and print row n of Pascal's triangle (starting from row 0) using math.comb(n, k) for k = 0..n.

Input

One integer n ≥ 0.

Output

One line.

Sample 1

Input
4
Output
1 4 6 4 1

Sample 2

Input
0
Output
1
solution.py
Output appears here
A Row of Pascal's Triangle · Python practice problem · LearnPy Hub