開始使用免費開始

成長與報酬率

成長(Growth)報酬率(Rate of Return) 是金融領域中無所不在的兩個概念。回想一下:若將 $100 投資在每年成長 5% 的資產上,持有 2 年的累積報酬可計算為:

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

本練習屬於課程

Python 金融概念入門

檢視課程

練習說明

  • 計算一筆 $100 投資連續 30 年、每年成長 6% 的未來價值(累積報酬),並將結果指派給 future_value

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Calculate the future value of the investment and print it out
future_value = ____
print("Future Value of Investment: " + str(round(future_value, 2)))
編輯並執行程式碼