Trace edits through shared array data

An engineer extracts a region of an integer array and saves a separate snapshot before editing the data. After all statements below execute in order, which statements are true? Select every true statement.


Python
import numpy as np
raw = np.arange(30, 42).reshape(3, 4)
window = raw[1:, 1:3]
saved = window.copy()
window[0, 1] = 90
raw[2, 1] = 70
Choose an answer

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 NumPy Questions: