[프로그래머스][Python] 예산
def solution(d,budget):
d.sort()
total=0
x=0
for i in d:
total = total+i
x+=1
if total >budget:
return x-1
elif total==budget:
return x
if total < budget :
return x