0
You are developing a finance app that helps users grow their savings Task Complete the code that take the savings.
# 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 = str(balance ) # Concatenate the 2 strings to produce a message message = "Amount in 1 year: "+ balance # Display the message print (message)
6 Respuestas
+ 2
olawoyin tunji,
the code runs perfectly and is matching all test cases.
+ 1
There is nothing wrong in your code, and I tested it with that exercise.
Maybe you misspell some words when typing the code at your first try?
0
Hi! Can someone please post the answer to this so I can reference it? I have no idea what i’m doing wrong and online hasn’t been much help.
0
It keep saying I should do it again and again.
0
olawoyin tunji
Your code is fine.
If the apps keeps preventing you to move forward, try the website version first.
If both apps and website do not work for you, you can contact info@sololearn.com with your code, so they can investigate.
0
Thank you