Multiplication tables: Difference between revisions
→{{header|Python}}: Labelled the procedural and functional variants
(→{{header|Python}}: For comparison, added an equivalent list monad version to the list comprehension expression) |
(→{{header|Python}}: Labelled the procedural and functional variants) |
||
Line 4,095:
=={{header|Python}}==
===Procedural===
<lang python>>>> size = 12
>>> width = len(str(size**2))
Line 4,129 ⟶ 4,130:
<small>(As would using ASCII minus, plus, and pipe characters: "-", "+", "|"; instead of the non-ASCII chars used to draw a frame)</small>.
===Functional===
and then again, for comparison,
<lang python>'''Multiplication table
|