Anonymous user
Talk:Pascal's triangle: Difference between revisions
→Right Output Format?
Line 15:
:That's not always easy to do. I think the important part of the task is the generation of each row. We don't need to complicate it with output formatting that isn't important to the theory involved. --[[User:Mwn3d|Mwn3d]] 18:37, 27 December 2009 (UTC)
::Need it or not, the Python~2 code as available strays from theory by virtue of the return statement
::<lang python>def pascal(n):
# Prints out n rows of Pascal's triangle, traditionally formatted.
|