Question: Take a look at the following code example, used to calculate a subtotal for an order: def calcTotal(taxable, amount, salesTax, shipping): if taxable == Yes:
Take a look at the following code example, used to calculate a subtotal for an order: def calcTotal(taxable, amount, salesTax, shipping): if taxable == "Yes": subtotal = amount + (1 * salesTax) + shipping elif shipping == 0: pass else: subtotal = amount + shipping return subtotal order1 = calcTotal("No", 508, .@7, @) print ("Your order total is ", orderi1) What is the amount of order1? o0o00 An error is raised 500.07 500 535
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
