Pricing a badge order

A school store sets the total price for a badge order using the Python code below. For the given order, what total is assigned? Answer in credits, to one decimal place.


Python
quantity = 24

if quantity < 10:
    total = quantity * 5
elif quantity < 25:
    total = quantity * 4
else:
    total = quantity * 3

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Chained Decisions Questions: