코딩테스트/Python
프로그래머스 스쿨 - 옷가게 할인 받기(Python)
보안매크로
2023. 9. 10. 12:14
728x90
def solution(price):
answer = 0
if 100000 <= price < 300000:
answer = price * 0.95
elif 300000 <= price < 500000:
answer = price * 0.9
elif price >= 500000:
answer = price * 0.8
else:
answer = price
return int(answer)
728x90