Tracking equipment stock

A school equipment program runs the following four lines in a Python script, in the order shown. Complete the table with the exact integer stored in stock after each line executes.


Python
stock = 28
stock - 6
stock = stock - 4
stock * 2
Point in executionValue stored in stock
After line 1
After line 2
After line 3
After line 4

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 Expressions and Statements Questions: