Log in
← All problems

Row of Pascal's triangle

mediumMaths and loops20 XP

Return row n of Pascal's triangle, counting from 0. Row 0 is [1]; each number in a row is the sum of the two above it.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.