Adjust Your F-String
And that means adjusting the f-string and formatting the variable
:.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.