meta name="naver-site-verification" content="78ec2fd5c7521410b35b9b3506af6f4f307243ba" /> # python_16 에러가 아니라 값이 떴다. 이건 기적이야

(before) 네덜란드/혹시몰라하는 코딩

# python_16 에러가 아니라 값이 떴다. 이건 기적이야

삽봉 2022. 12. 9. 03:56
def get_yearly_revenue(monthly_revenue) :
  return (monthly_revenue * 12)
def get_yearly_expenses(monthly_expenses) :
  return (monthly_expenses * 12)
def get_tax_amount(profit):
  if profit > 100000 :
    return(profit * 0.25)
  else :
    return(profit * 0.15)
    
def apply_tax_credits(get_tax_amount,get_tax_credits):
  return(get_tax_amount - get_tax_credits)
# Don't touch anthing below this line 🙅🏻‍♂️🙅🏻‍♀️

monthly_revenue = 5500000
monthly_expenses = 2700000
tax_credits = 0.01

profit = get_yearly_revenue(monthly_revenue) - get_yearly_expenses(monthly_expenses)

tax_amount = get_tax_amount(profit)

final_tax_amount = tax_amount - apply_tax_credits(tax_amount, tax_credits)

print(f"Your tax bill is: ${final_tax_amount}")
Your tax bill is: $0.009999999776482582