Track two debugger steps

A Python debugger is paused immediately before the first statement below. Its variable inspector shows price = 6, quantity = 9, and discount = 7. Price and discount are in dollars; quantity is an item count.


Python
subtotal = price * quantity
total = subtotal - discount
print(total)


In this debugger, Step Over executes the highlighted statement and pauses before the next one. After pressing Step Over exactly twice, what value will the inspector show for total? Answer in dollars, to zero decimal places. The initially highlighted statement has not yet executed.

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 Development Environments Questions: