Faulhaber's triangle: Difference between revisions
Content added Content deleted
(→{{header|Python}}: pylinted for Python 3, updated output) |
|||
Line 2,022: | Line 2,022: | ||
# GENERIC ------------------------------------------------- |
# GENERIC ------------------------------------------------- |
||
# showRatio :: Int -> Ratio -> String |
# showRatio :: Int -> Int -> Ratio -> String |
||
def showRatio(m): |
def showRatio(m): |
||
''' |
'''Left and right aligned string |
||
of the ratio r. |
representation of the ratio r. |
||
''' |
''' |
||
def go(n, r): |
def go(n, r): |