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

Average of a list · ⁨リストの平均⁩

English

Average of a list

Return the mean of a list: the total divided by how many numbers there are.

len(nums) tells you how many items the list has. Dividing with / always gives a decimal, so the average of 1 and 2 is 1.5.

日本語

リストの平均値

リストの平均(中央値)を返します: 合計を数字の個数で割った値です。

len(nums) はリストの要素数を返します。/ で割ると常に小数になりますので、1 と 2 の平均は 1.5 です。

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

IGCSE, A-Level & AP