Interest Calculator

Step 4: Show the yearly interest, total interest, and monthly payment to the user. Use a comma to separate groups of thousands, and format to two decimal places for the cents.
Hint: Use :,.2f to use a comma separator, and to format a number to two decimal places:
print(f"\nYearly interest: ${your_variable:,.2f}")
Last step Next step