0

Help me understand why I am stuck #totalnoob

I am trying to figure out the finance app. I thought I was doing well until I was confronted with this finance app. I had a hard time understanding the app’s approach to the question to begin with, but once I got that, I hit a brick wall with this thing. Can any of you figure out what I am not understanding?

18th Jul 2023, 4:35 AM
AniZaTo
3 ответов
+ 5
AniZaTo There are a few issues with the code. :-You're not actually converting the balance variable,You're just creating an empty string. :-removed the parentheses around str() &removed the parentheses around float(balance), they are unnecessary. :-removed the line `savings = (float(savings))`, the `savings` variable is already converted to a float on the next line. I modified your code see this.. https://code.sololearn.com/cc6wEFUiQY1t/?ref=app
18th Jul 2023, 5:10 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 2
Darpan kesharwani thank you for taking the time to show me the error of my ways. I see that i had already figured out how to convert (I had already done it for the float but missed it below for the balance), I guess I needed a break, huh? LOL I was so tired I also multiplied by 12 to extract the year when I was already multiplying by 1.05 🙈 LOL Thanks again my friend!
18th Jul 2023, 4:34 PM
AniZaTo
18th Jul 2023, 4:50 AM
AniZaTo