0

I'm trying to run my code and it keep saying I'm not correct but I did the it it done

# Asks the user to enter the savings savings = input() # Convert the user input into a float value and update the variable savings =float (savings ) # Savings grow after 1 year at a 5% annual interest rate balance = savings *1.05 # Convert the balance into a string and update the variable balance = 157.5 balance = str(balance ) # Concatenate the 2 strings to produce amessage message = "Amount in 1 year: " + str(balance) # Display the message print(message)

9th Nov 2023, 10:10 PM
olawoyin tunji
9 Answers
+ 1
olawoyin tunji Your code is different from your previous question. In this post, you hard coded the balance value, and it is the reason why you cannot pass the exercise.
10th Nov 2023, 12:11 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 1
olawoyin tunji The code you previously posted was the correct one. Compare the codes, code in this post has one extra line. That line is hard coded and does not needed. https://www.sololearn.com/discuss/3250955/?ref=app Hard coding the balance won't make you pass the tests.
13th Nov 2023, 1:47 PM
Wong Hei Ming
Wong Hei Ming - avatar
+ 1
olawoyin tunji I copy and paste your code in previous post and it pass all test cases. If problem persists, please contact SoloLearn at info@sololearn.com with your code attached.
16th Nov 2023, 2:30 PM
Wong Hei Ming
Wong Hei Ming - avatar
+ 1
olawoyin tunji I once asked for a support and it took a long time to get reply. Just be patient. In the meantime you can try the website version. If it still not work for you, check the result tab and post the error code, expected result and your result for each case. These info are helpful to investigate what went wrong.
16th Nov 2023, 2:42 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
Can you elaborate more pls .
13th Nov 2023, 1:34 PM
olawoyin tunji
0
Can you help me to go the page and do it for me ? I'm tired of this, anybody to help me out ??
16th Nov 2023, 2:26 PM
olawoyin tunji
0
Have contact them no reply
16th Nov 2023, 2:32 PM
olawoyin tunji
0
Should I try upgrading my app
16th Nov 2023, 2:33 PM
olawoyin tunji
0
Thank you very much
16th Nov 2023, 2:51 PM
olawoyin tunji