IN PYTHON 3 NOT 2 implement recursive function pascalLine th

IN PYTHON 3 (NOT 2) implement recursive function pascalLine() that takes a nonnegative integer n as input

and returns a list containing the sequence of numbers appearing in the nth line of Pascal’s

triangle.

>>> pascalLine(0)

[1]

>>> pascalLine(2)

[1, 2, 1]

>>> pascalLine(3)

[1, 3, 3, 1]

Solution

return lne

IN PYTHON 3 (NOT 2) implement recursive function pascalLine() that takes a nonnegative integer n as input and returns a list containing the sequence of numbers

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site