Question: ** all functions must include docstrings. Programs with functions must have the statement if __name__==__main__ PYTHON a. write a function show_interest() to take in 3

** all functions must include docstrings. Programs with functions must have the statement
if __name__==__main__
PYTHON
a. write a function show_interest() to take in 3 arguments principal, rate and periods.
- interest = principal * rate * periods
- print the following string
The simple interest will be $1,000.00
b. write the main() function to call show_interest with the default arguments:
rate== 0.01, periods=10, principal = 10000.00

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 Databases Questions!