Q : 입력으로 들어오는 모든 수의 평균 값을 계산해 주는 함수를 작성해 보자. (단 입력으로 들어오는 수의 개수는 정해져 있지 않다.)
평균 값을 구할 때 len 함수를 사용해 보자.
answer
1 | def sum(*args): |
평균 값을 구할 때 len 함수를 사용해 보자.
1 | def sum(*args): |
Author: Slay
Permalink: http://sean-baek.github.io/2022/08/27/2022-08-21-jump2python-exercises-answer-4-2/
License: Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan: Do you believe in DESTINY?