본문 바로가기
💻 하나씩 차곡차곡/프로그래머스 (Python)

[프로그래머스/python/Lv1] 없는 숫자 더하기

by 뚜루리 2023. 12. 14.
728x90
320x100
def solution(numbers):
    list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
    return sum([i for i in list if i not in numbers])

 

728x90
320x100