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)

8th Nov 2023, 7:01 AM
olawoyin tunji
6 Respostas
+ 2
olawoyin tunji, the code runs perfectly and is matching all test cases.
8th Nov 2023, 4:59 PM
sandra
sandra - avatar
+ 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?
8th Nov 2023, 12:34 PM
Wong Hei Ming
Wong Hei Ming - avatar
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.
8th Nov 2023, 7:01 AM
olawoyin tunji
0
It keep saying I should do it again and again.
9th Nov 2023, 11:42 AM
olawoyin tunji
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.
9th Nov 2023, 1:03 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
Thank you
9th Nov 2023, 9:45 PM
olawoyin tunji