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