def hotel_cost(nights):
return nights * 140
bill = hotel_cost(5)
def add_monthly_interest(balance):
return balance * (1 + (0.15 / 12))
def make_payment(payment, balance):
new_balance2 = balance - payment
new_balance = add_monthly_interest(new_balance2)
print "You still owe: " + str(new_balance)
make_payment(100,bill)
为什么会返回
You still owe: 607.5
None
?