リスト内包表記はこういうときには強いんだなあ
$ python3 -c 'print(sum([i*j for i in range(1,10) for j in range (1,10)]))'2025
内部イテレータでもなんとかなることはなる
$ ruby -e 'p (1..9).sum{|i| (1..9).sum{|j| i*j}}'2025
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.