Pascal's triangle: Difference between revisions

(→‎{{header|J}}: simplify formatting)
Line 1,282:
"""Prints out n rows of Pascal's triangle.
It returns False for failure and True for success."""
row = [1,]
k = [0,]
for x in range(max(n,0)):
print row
Anonymous user