sol1) def solution(num_str): answer = [int (i) for i in list(num_str)] return sum(answer)
sol1)
def solution(num_str): answer = [int (i) for i in list(num_str)] return sum(answer)
sol2) def solution(num_str): return sum(map(int, list(num_str)))
sol2)
def solution(num_str): return sum(map(int, list(num_str)))