Multiplication tables: Difference between revisions

m
→‎Functional Python: Minor reformat to ease the comparison of list comprehension with list monad
(→‎{{header|Python}}: Labelled the procedural and functional variants)
m (→‎Functional Python: Minor reformat to ease the comparison of list comprehension with list monad)
Line 4,160:
return unlines([
pad(str(y) + ':') + unwords([
pad(str(x * y) if x >= y else '') for x in xs
for x in xs
]) for y in xs
])
9,659

edits