Question: Suppose you work for a financial institution, a bug has been detected in an application. The program should continue if the credit score is above

Suppose you work for a financial institution, a bug has been detected in an application. The program should continue if the credit score is above 700. Specifically, the loop should continue
until a score below 700 is entered. What is wrong with this portion of the code:
continue_1=' y '
while continue_1==' y ':
credit_check = int(input('Enter credit score: '))
if credit_check 700 :
approved = False
continue_1=' n '
A. The control variable is not correctly initialized.
B. The assignment continue_1=' n ' is out of scope. The program will end even if the entered credit score is above 700.
C. There are no problems with this code. The loop executes as intended.
D. A variable cannot be evaluated when it is storing string literals. Therefore, the evaluation will always be false.
 Suppose you work for a financial institution, a bug has been

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!