Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculator ():
- loan_amount=float(input("What is the amount of the loan you want to take out :"))
- currency=input("What is your currency , please type in the symbol £ , $ , € :")
- intrest1= (int(input("Precentage of interest as a number:")))
- intrest_type=intrest1/100+1
- length= float(input("What is the length on the loan in years :"))
- intrestperannum=(loan_amount*intrest_type)-loan_amount
- extra=intrestperannum*length
- amount=intrestperannum*length+loan_amount
- roundedamount=round(amount, 2)
- roundedextra=round(extra, 2)
- print("Your amount for simple interest is ",currency, roundedamount," This means that you will be paying ",currency,roundedextra,"in interest rounded up to 2 digits:")
- calculator()
Advertisement
Add Comment
Please, Sign In to add comment