Skip to content

Commit 94c8c26

Browse files
committed
Modified mortgage.py
1 parent 6e0e693 commit 94c8c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Work/mortgage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
principal -= extra_payment
2222
total_paid += extra_payment
2323
total_paid = total_paid + payment
24-
print(month, round(total_paid, 2), round(principal, 2))
24+
print(f'{month:3d} {total_paid:9.2f} {principal:9.2f}')
2525
month += 1
2626

27-
print('Total paid', total_paid)
27+
print(f'Total paid {total_paid:0.2f}')
2828

0 commit comments

Comments
 (0)