Blank Video Poster

How to calculate the rate of investment for 10 years using python | Python exercise #5

Nov 21, 2022
How to calculate the rate of investment for 10 years using python | Python exercise #5 This is a python program to calculate the value of an investment for 10 years in the future. In order to do this exercise, first, we need to get the initial investment and the annual rate of the user. As usual, as we did in the previous exercise we will use the eval method to get the desired variable type. Now, it’s time to calculate the investment for 10 years. Tips to follow : Get the initial investment. Get the annual rate. Compute the investment for 10 years using the formula - investment = investment * (1 + annual_rate). Print the investment.
#Investing #Distance Learning #Training & Certification #Vocational & Continuing Education