Does a[0:2] share memory with a

NumPy · from Views, copies and shared memory

.base.copy()np.shares_memory.flags.owndataview vs copy

Putting the kettle on…

Starting up…

Exercise 1

Does a[0:2] share memory with a? Return the boolean.

your answer
stuck? the lesson behind it
Views, copies and shared memory
Slicing doesn’t copy — and that will edit your data behind your back exactly once.