Skip to content · ⁨コンテンツへスキップ⁩

A list of squares · ⁨二乗のリスト⁩

English

A list of squares

Build a list one item at a time instead of printing each value.

squares.append(x) adds x to the end of the list. Printing a whole list shows it in square brackets, with commas between the items.

日本語

二乗数のリスト

各値を出力する代わりに、1つずつリストを構築します。

squares.append(x) は x をリストの末尾に追加します。 リスト全体を印刷すると、項目間にコンマを挟んで角括弧で囲まれた形式で表示されます。

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP