<filename>월간코드챌린지2/4월/음양더하기.py
def solution(absolutes, signs):
    answer = 0
    for i in range(len(absolutes)):
        if signs[i]: answer += absolutes[i]
        else: answer += absolutes[i] * (-1)
    return answer


print(solution([4, 7, 12], [True, False, True]))

<filename>월간코드챌린지2/4월/음양더하기.py
def solution(absolutes, signs):
    answer = 0
    for i in range(len(absolutes)):
        if signs[i]: answer += absolutes[i]
        else: answer += absolutes[i] * (-1)
    return answer


print(solution([4, 7, 12], [True, False, True]))
