Question: Python Please add a loop to ask the user if they would like to try a different loan amount. def greeting ( ) : print
Python
Please add a loop to ask the user if they would like to try a different loan amount.
def greeting:
printGreetings Please fill out this loan application."
def thankyou:
printThank you for your loan application."
def calculateloantotalamount interest, years:
total amount
for year in range years :
total interest
printfYear year: $total:f
def main:
greeting
amount floatinputPlease enter the loan amount:
interestrate floatinputPlease enter the annual interest rate in percentage, eg for :
interest interestrate
years intinputPlease enter the number of years for the loan:
print
Calculating loan values for each year...
calculateloantotalamount interest, years
thankyou
if namemain:
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
