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