Question: 1 price = 1 2 2 quantity = 2 3 amount = price * quantity 4 5 if amount > 1 0 0 : 6

1 price =12
2 quantity =2
3 amount = price*quantity
4
5 if amount >100:
6 if amount >500:
7 print("Amount is greater than 300")
8 else:
9 if amount <500 and amount >400:
10 print("Amount is")
11 elif amount <500 and amount >300:
12 print("Amount is between 300 and 500")
13 else:
14 print("Amount is between 200 and 500")
15 elif amount ==100:
16 print("Amount is 100")
17 else:
18 print("Amount is less than 100")
Using the interactive debugger for the sample script, which line of code will be highlighted if line 5 evaluates to False?
17
8
18
15

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!