Average of a list · 리스트 평균
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
This one builds on a lesson you haven't finished yet. Do that lesson first: · 이 과제는 아직 완료하지 않은 수업에 기반합니다. 먼저 해당 수업을 완료하세요:
Python Basics · Functions →
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입니다.
Write average(nums) that returns the mean: the total divided by how many numbers there are. The list is never empty. · 반환하는 average(nums)을 작성하여 평균(총합 ÷ 수의 개수)을 구하십시오. 리스트는 비어 있지 않습니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.