29 lines
845 B
Markdown
29 lines
845 B
Markdown
---
|
|
id: practical-python-1.8
|
|
source_exercise_id: "1.8"
|
|
title: "Extra payments"
|
|
section: "1.3 Numbers"
|
|
source_path: "01_Introduction/03_Numbers.md"
|
|
source_repo: "https://github.com/dabeaz-course/practical-python"
|
|
source_commit: "93dca856b41c61a0a0f85ae334116e4c125629ea"
|
|
student_visible_solution: false
|
|
has_private_solution: false
|
|
skip: false
|
|
---
|
|
|
|
# Exercise 1.8: Extra payments
|
|
|
|
> Source: Practical Python Programming, `01_Introduction/03_Numbers.md`.
|
|
|
|
### Exercise 1.8: Extra payments
|
|
|
|
Suppose Dave pays an extra $1000/month for the first 12 months of the mortgage?
|
|
|
|
Modify the program to incorporate this extra payment and have it print the total amount paid along with the number of months required.
|
|
|
|
When you run the new program, it should report a total payment of `929,965.62` over 342 months.
|
|
|
|
## 关联来源
|
|
|
|
- [[summaries/03_Numbers]]
|