Solution :
# Reading principle amount from user
= eval(Enter principle amount: "))
# Reading time duration in number of year from user
years = eval(input("Enter time duration in number of year: "))
# Reading interest rate from user
annualInterestRate = eval(input("Interest rate: "))
# calculating futureValue using user input data
futureValue = accountPresentValue * (1 + annualInterestRate / 100) ** years
# printing calculated futureValue to console
print("Final balance =",futureValue)