Answered step by step
Verified Expert Solution
Question
1 Approved Answer
what is the error in this code Debug Stop 4 Run Share Save {} Beautify Language Python 3 main.py Download Code 1 print('WELCOME TO LOAN
what is the error in this code
Debug Stop 4 Run Share Save {} Beautify Language Python 3 main.py Download Code 1 print('WELCOME TO LOAN PAYMENT CALCULATOR') 2 mortgagePrincipal=eval(input('Enter the principal value (RM): ')) 3 monthlyInterest=eval(input('Enter the interest rate in % : ')) period=eval(input('Enter the period of loan in year: ')) 5 P=mortgagePrincipal 6 I=monthlyInterest/1200 #divided by 100 for decimal and 12 for monthly payment per year 7 N=period*12 #year times 12 monthly payment 8 print("You want to borrow RM {} over {} years with an interest rate of {} %!").format(mortgagePrincipal, period, monthlyInter monthlyPayment=sum=int(P((I*(1+1)**N)/((1+1)**N) -1) #formula to get monthly payment 10 print("The monthly payment is RM %3.2f"%monthlyPayment) 11 print("Press any key to continue...") 9 input print ("The monthly payment is RM $3.2f"&monthlyPayment) SyntaxError: invalid syntax ... Program finished with exit code 1 Press ENTER to exit consoleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started