[파이썬3 코딩테스트] 없는 숫자 더하기

Sy Rhee·2023년 2월 6일
0

문제 설명 및 제한 조건

나의 풀이

def solution(numbers):
    result = 0
    i = 0
    while 0<=i<=9:
        if i not in numbers:
            result += i
            i += 1
        else:
            i += 1
    return result
profile
hello

0개의 댓글