728x90
반응형

split 함수를 사용해주면 쉽게 풀린다.

for _ in range(int(input())):
    print(sum(map(int , input().split(','))))
728x90
반응형

+ Recent posts