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