https://school.programmers.co.kr/learn/courses/30/lessons/86051
https://github.com/stellaluminary/Programmers
직관적 코드
def solution(numbers):
answer = 0
for i in range(1, 10):
if i not in numbers:
answer += i
return answer
수의 특성을 고려한 코드
def solution(numbers):
return 45 - sum(numbers)