Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 199 Bytes

README.md

File metadata and controls

12 lines (11 loc) · 199 Bytes

Investigate the behavior of the statements below by looking at the values of the arrays a and b after assignments:

a = np.arange(5)
b = a
b[2] = -1
b = a[:]
b[1] = -1
b = a.copy()
b[0] = -1