Preserve the original force readings

An engineer stores three force readings in newtons in a Python list. Before calculating a summary, a temporary calculation adds 4 N to the second reading and removes the final reading.


Execute each experiment independently, starting with its own list. Complete the table with exact integers. List indices start at zero, and pop() without an argument removes the final element.


Experiment A


Python
readings = [14, 20, 26]
working = readings
working[1] = working[1] + 4
working.pop()
original_second = readings[1]
original_count = len(readings)
working_total = sum(working)


Experiment B


Python
readings = [14, 20, 26]
working = readings.copy()
working[1] = working[1] + 4
working.pop()
original_second = readings[1]
original_count = len(readings)
working_total = sum(working)
Experimentoriginal_second (N)original_countworking_total (N)
A
B

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 Programming Techniques for Data Analysis Questions: