Q1: Getting started with Python ( helping the owner) (pts = 20) a. Write the Python code that would calculate the new balance in owner’s savings account if she invested principle P, for N years at an interest rate of r%. Hint: newBalance = ??? b. Test your code by plugging in $1000, for 2 years at 10%. Print our your answer with appropriate identifier. ( you should get around $1210 )
Q1: Getting started with Python ( helping the owner) (pts = 20)a. Write the Python code that would
calculate the new balance in owner’s savings account if she invested principle P, for N years at an interest rate of r%. Hint:
newBalance = ???
b. Test your code by plugging in $1000, for 2 years at 10%. Print our your answer with appropriate identifier. ( you should get around $1210 )