MulaiMulai sekarang secara gratis

Growth and rate of return

Growth and Rate of Return are two concepts that are ubiquitous throughout the financial world. Recall that the cumulative returns from investing $100 in an asset that grows at 5% per year, over a 2 year period can be calculated as:

$$100*(1 + 0.05)^2$$

Latihan ini adalah bagian dari kursus

Introduction to Financial Concepts in Python

Lihat Kursus

Petunjuk latihan

  • Calculate the future value (cumulative return) of a $100 investment which grows at a rate of 6% per year for 30 years in a row and assign it to future_value.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Calculate the future value of the investment and print it out
future_value = ____
print("Future Value of Investment: " + str(round(future_value, 2)))
Edit dan Jalankan Kode