diff --git a/100_Numpy_exercises_with_hints.md b/100_Numpy_exercises_with_hints.md index 905334a..96fa44a 100644 --- a/100_Numpy_exercises_with_hints.md +++ b/100_Numpy_exercises_with_hints.md @@ -69,7 +69,7 @@ np.nan in set([np.nan]) #### 24. Multiply a 5x3 matrix by a 3x2 matrix (real matrix product) (★☆☆) `hint:` #### 25. Given a 1D array, negate all elements which are between 3 and 8, in place. (★☆☆) -`hint: >, <=` +`hint: >, <` #### 26. What is the output of the following script? (★☆☆) ```python # Author: Jake VanderPlas diff --git a/100_Numpy_exercises_with_hints_with_solutions.md b/100_Numpy_exercises_with_hints_with_solutions.md index eb83533..8319fdb 100644 --- a/100_Numpy_exercises_with_hints_with_solutions.md +++ b/100_Numpy_exercises_with_hints_with_solutions.md @@ -205,7 +205,7 @@ Z = np.ones((5,3)) @ np.ones((3,2)) print(Z) ``` #### 25. Given a 1D array, negate all elements which are between 3 and 8, in place. (★☆☆) -`hint: >, <=` +`hint: >, <` ```python # Author: Evgeni Burovski diff --git a/100_Numpy_exercises_with_solutions.md b/100_Numpy_exercises_with_solutions.md index d51bbde..aaafa80 100644 --- a/100_Numpy_exercises_with_solutions.md +++ b/100_Numpy_exercises_with_solutions.md @@ -211,7 +211,7 @@ print(Z) # Author: Evgeni Burovski Z = np.arange(11) -Z[(3 < Z) & (Z <= 8)] *= -1 +Z[(3 < Z) & (Z < 8)] *= -1 print(Z) ``` #### 26. What is the output of the following script? (★☆☆) diff --git a/source/exercises100.ktx b/source/exercises100.ktx index dd7fd99..929cfbf 100644 --- a/source/exercises100.ktx +++ b/source/exercises100.ktx @@ -266,7 +266,7 @@ print(Z) Given a 1D array, negate all elements which are between 3 and 8, in place. (★☆☆) < h25 -hint: >, <= +hint: >, < < a25 # Author: Evgeni Burovski