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)
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.
+ 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.
+ 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.
+ 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.
0
Can you elaborate more pls .
0
Can you help me to go the page and do it for me ? I'm tired of this, anybody to help me out ??
0
Have contact them no reply
0
Should I try upgrading my app
0
Thank you very much