You have already completed these exercises!
Do you want to take them again?
You completed the NUMPY Copy vs View Exercises from W3Schools.com
Share on:
Consider the following code:import numpy as nporiginal_array = np.array([1, 2, 3])x = original_array.copy()x[0] = 5print(original_array)What will be the printed result?
import numpy as nporiginal_array = np.array([1, 2, 3])x = original_array.copy()x[0] = 5print(original_array)
[1 2 3]
[5 2 3]