Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

Students also viewed these Databases questions