course content

Course Content

Introduction to Python | Mobile-Friendly

ChallengeChallenge

Let's use variables for one of the previous tasks.


Task

Suppose a principle amount of $1,000 is deposited in a bank that pays an annual interest rate of 15%, compounded yearly. Assign respective values to the appropriate variables and answer the question: How much money will you get in 5 years?

question-icon

Fill in the blanks to complete the task.

_ _ _
= 1000
_ _ _
= 1.15
_ _ _
= 5
print(initial_amount*annual_growth**n_of_years)
2011.3571874999993

Click or drag`n`drop items and fill in the blanks

dots
n_of_years
dots
annual_growth
dots
initial_amount
down-icon

Section 2.

Chapter 4