Program : 綺麗な10000×10000レベルの掛け算表を作る 今回は10000×10000のような大きい数の掛け算表を作る事を考えます。 実用性は完全に無視。 今回重要視するのは「綺麗に並べること」です。 失敗するのは分かりきっているので range(1,10001)ではなく range(1,101) に ...
Pythonでアルゴリズムまだやりますよ~😆。今回のテーマは、「最大値を求める」でございます。 「最大値くらい、表計算ソフトとかで関数を使えば一発で求められますよね?🤔」 うん、はい。これをあえてアルゴリズムを考えて、Python上で実装しようと ...
#range() and len() are often used together when iterating over a MUTABLE SEQUENCE, # to access each item in the sequence by index. #Use range() and len() in a FOR-LOOP to access each item by index ...