Ethan's First Notebook
My first notebook!
Home | API | Notes |
print("Hello")
print("Lets calculate your time value of money after one year!")
print("How much money are you investing?")
# Input the initial amount of money
Money = float(input("Amount of money: "))
print("$" + "{:.2f}".format(Money))
# Input interest rate
print("What is the interest rate of your investment?")
r = float(input("Interest rate: "))
percent = (r * 100)
# Interest rate shown as a percentage
print("{:.2f}".format(percent) + "%")
# Calculation of the final amount of money
final_amount = (Money * (1 + r))
print('This will be your amount of money after one year.')
print("$" + "{:.2f}".format(final_amount))