Anyone had a problem with this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anyone had a problem with this?

First test ok, 2nd and 3erd errors, help please...

23rd Jul 2023, 5:56 PM
Manuel Alvarado
2 Answers
23rd Jul 2023, 6:01 PM
A͢J
A͢J - avatar
0
# Asks the user to enter the savings savings = input() # Convert the user input into a float value and update the variable savings = float (150) # 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(157.5) # Concatenate the 2 strings to produce a message message = "Amount in 1 year: " + balance # Display the message print (message )
23rd Jul 2023, 5:56 PM
Manuel Alvarado