Question: Question 1 ( 1 5 pts ) : Create a variable initial _ amount with the value 1 5 0 and another variable interest _

Question 1(15 pts):
Create a variable initial_amount with the value 150 and another variable interest_rate equal to 0.05. After then, calculate the amount of money saved after 20 years and store it in a variable called savings.
Round savings to the nearest integer. Store the result into a variable named my_money. Hint: DataCamp introduced this as one of the built-in functions. You may want to look up the round () function in the Python documentation
Print the type of the variable my_money, and change the type to int if it is not.
Question 1 ( 1 5 pts ) : Create a variable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!