Question: Python 1 . Ask the user to input 3 valuse for a loan. The amount of the loan, the interest for the loan and the

Python
1. Ask the user to input 3 valuse for a loan. The amount of the loan, the interest for the loan and the number of years for the loan.
2. Show a calculation that takes the amount, interest, and the years to calculate the total value of the loan.
3. Use a loop starting from year 1 and going up to the year that was input by the user to calculate the total value of the loan for that year.
4. Print the year and the loan amount formatted to 2 decimal places.
def greeting():
print("Greetings to you, please fill out this loan application")
def thankyou():
print("Thank you for your loan application")
greeting()
def main():
for i in range(1,11):
print(i)
amount = float(input("Please enter the loan amount: "))
interest = float(input("Please enter the interest rate: "))
years = int(input("Please enter years of the loan: "))
print("You entered", amount)
print(f"This is the loan {amount:.2f} approximate")
total = amount *(1+ interest)**10
thankyou()
main()

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!