문제 설명

내 풀이:

def solution(numbers):
    answer = 0
    num = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
    for i in num:
        if i not in numbers:
            answer += i
    return answer

numbers = [1,2,3,4,6,7,8,0]
print(solution(numbers))

다른 사람 풀이:

def solution(numbers):
    return 45 - sum(numbers)