diff --git a/100_Numpy_exercises_with_hints_with_solutions.md b/100_Numpy_exercises_with_hints_with_solutions.md index 3111ef5a..d2d2d65a 100644 --- a/100_Numpy_exercises_with_hints_with_solutions.md +++ b/100_Numpy_exercises_with_hints_with_solutions.md @@ -127,11 +127,6 @@ print(Z) Z = np.ones((5,5)) Z = np.pad(Z, pad_width=1, mode='constant', constant_values=0) print(Z) - -# Using fancy indexing -Z[:, [0, -1]] = 0 -Z[[0, -1], :] = 0 -print(Z) ``` #### 17. What is the result of the following expression? (★☆☆) ```python diff --git a/100_Numpy_exercises_with_solutions.md b/100_Numpy_exercises_with_solutions.md index b01ccfd3..c87ac114 100644 --- a/100_Numpy_exercises_with_solutions.md +++ b/100_Numpy_exercises_with_solutions.md @@ -127,11 +127,6 @@ print(Z) Z = np.ones((5,5)) Z = np.pad(Z, pad_width=1, mode='constant', constant_values=0) print(Z) - -# Using fancy indexing -Z[:, [0, -1]] = 0 -Z[[0, -1], :] = 0 -print(Z) ``` #### 17. What is the result of the following expression? (★☆☆) ```python diff --git a/source/exercises100.ktx b/source/exercises100.ktx index e08da626..c34d89a0 100644 --- a/source/exercises100.ktx +++ b/source/exercises100.ktx @@ -162,11 +162,6 @@ Z = np.ones((5,5)) Z = np.pad(Z, pad_width=1, mode='constant', constant_values=0) print(Z) -# Using fancy indexing -Z[:, [0, -1]] = 0 -Z[[0, -1], :] = 0 -print(Z) - < q17 What is the result of the following expression? (★☆☆) ```python