yasoon_0115   3년 전

5
5 50 50 70 80 100
이렇게 입력하면,
나오는 에러 창입니다.
TypeError                                 Traceback (most recent call last)
<ipython-input-46-79537dbcd3c4> in <module>
      2 for i in range(a):
      3     nums = list(map(int, input().split()))
----> 4     avg = sum(nums[1:])/nums[0]
      5     cnt = 0
      6     for score in nums[1:]:

TypeError: 'int' object is not callable

shg9411   3년 전

sum 쓰지 마세요.

댓글을 작성하려면 로그인해야 합니다.