Question
I'm having trouble with finding one of the errors.. please help!Identify errors and fix the code. There are 4 different errors in the following code
I'm having trouble with finding one of the errors.. please help!Identify errors and fix the code.\ There are 4 different errors in the following code segment; there may be syntax and logic errors. Design some simple\ test cases to find the logic errors. Find the 4 errors and correct the code to work.\ IDEAL_CREDIT_SCORE
=720
\ userScore
=
int(input("Please enter your credit score: "))\ housePrice
=
int(input("Please enter the price of the house: "))\ if userScore
=>
IDEAL_CREDIT_SCORE:\ downPayment
=0.1**
housePrice\ else if userScore " 600 ":\ downPayment
=0.2**
housePrice\ else:\ downPayment
=0.3**
housePrice\ print("Your down payment is:
${}
".format(downPayment))
Step 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