From 2a72118b8d99c56a8261aff9405cfffad7db35b8 Mon Sep 17 00:00:00 2001 From: Konstantin Alikhanov Date: Fri, 19 Jun 2020 18:59:42 +0400 Subject: [PATCH] Removing incorrect answer for #125 --- 100_Numpy_exercises_with_hints_with_solutions.md | 5 ----- 100_Numpy_exercises_with_solutions.md | 5 ----- source/exercises100.ktx | 5 ----- 3 files changed, 15 deletions(-) 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