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))

 I'm having trouble with finding one of the errors.. please help!Identify

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

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!