Adjust Your F-String
00:00 If you have done one of the earlier challenges in this course, then you know exactly what to do to display the amount rounded to two decimal places for the number of years.
00:11
And that means adjusting the f-string and formatting the variable amount
with :.2f
inside the curly braces. And when you run the module, then you can see that the numbers are rounded to two decimal places for the number of years, which is exactly what you want to do.
00:33 The last thing that’s left, you put it as to-dos there, and it’s also as the bigger comment: prompt the user to enter the initial amount and the percentage rate and the number of years, and that’s what you will do in the next lesson.
Become a Member to join the conversation.