Talk:Pascal's triangle: Difference between revisions

m
added an clarifying comment.
m (added an clarifying comment.)
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)
 
::: It seems easy enough to do, just indent:   '''Total Rows-Current Row'''.   -- [[User:Gerard Schildberger|Gerard Schildberger]] 22:12, 2 November 2012 (UTC)
 
:::: (For further edification and clarification):   indent each displayed row with:     value('''totalRows   ''minus''   currentRow).     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 20:33, 18 July 2016 (UTC)
 
::Need it or not, the Python~2 code as available strays from theory by virtue of the return statement. I submit that completeness and conformity trumps raw theory in the case of code examples and would serve an additional segment of the public with formatting applied. I further submit the following as alternative and addition to present code under the potential heading of "Traditionally Formatted, Python~3":