[Programmers] 없는 숫자 더하기
Python
def solution(numbers):
answer = 0
temp = [0,1,2,3,4,5,6,7,8,9]
for i in temp:
if i not in numbers:
answer += i
return answer
def solution(numbers):
answer = 0
temp = [0,1,2,3,4,5,6,7,8,9]
for i in temp:
if i not in numbers:
answer += i
return answer
댓글남기기