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