How to solve the finance app test on python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to solve the finance app test on python

20th Sep 2023, 2:55 AM
A.Muh. Fachrul Fauzan
A.Muh. Fachrul Fauzan - avatar
9 Answers
+ 5
Share your attempt. Let me know what you find confusing.
20th Sep 2023, 3:27 AM
Chris Coder
Chris Coder - avatar
+ 5
i just explained how to fix it 🤔 You need to change line 4 as I suggested in my previous response and change line 13 to this: message = ("Amount in 1 year: " + total)
20th Sep 2023, 6:48 AM
Keith
Keith - avatar
+ 4
There are two things you need to correct in your code: 1. On line 4 you should convert 'savings' into a float. This is because when you take the input() on line 2, Python stores the value as a string by default. savings = float(savings) 2. You need to add a space just before the closing quote so that there is a space between your text and the balance in your output.
20th Sep 2023, 5:15 AM
Keith
Keith - avatar
20th Sep 2023, 3:33 AM
A.Muh. Fachrul Fauzan
A.Muh. Fachrul Fauzan - avatar
+ 1
Hi Anastasia Xydia, You should start a new topic by going to 'DISCUSS => +New Post' and post your code so I or someone else can help you 👍
21st Sep 2023, 3:42 AM
Keith
Keith - avatar
0
Or u can see the finance test on the python
20th Sep 2023, 3:33 AM
A.Muh. Fachrul Fauzan
A.Muh. Fachrul Fauzan - avatar
0
Can you just share the code to solve that pls
20th Sep 2023, 6:30 AM
A.Muh. Fachrul Fauzan
A.Muh. Fachrul Fauzan - avatar
0
Thanku
21st Sep 2023, 5:42 PM
Papa Ji
Papa Ji - avatar
0
I did it 👍🏻thanks
11th Apr 2024, 8:44 PM
Ugochukwu Meshach