diff --git a/100 Numpy exercises with hint.ipynb b/100 Numpy exercises with hint.ipynb index cc629f2..6df24e5 100644 --- a/100 Numpy exercises with hint.ipynb +++ b/100 Numpy exercises with hint.ipynb @@ -721,7 +721,7 @@ "metadata": {}, "source": [ "#### 39. Create a vector of size 10 with values ranging from 0 to 1, both excluded (★★☆) \n", - "(**hint**: np.linespace)" + "(**hint**: np.linspace)" ] }, { diff --git a/100 Numpy exercises with hint.md b/100 Numpy exercises with hint.md index 1bfc5d1..e95d56d 100644 --- a/100 Numpy exercises with hint.md +++ b/100 Numpy exercises with hint.md @@ -266,7 +266,7 @@ np.sqrt(-1) == np.emath.sqrt(-1) #### 39. Create a vector of size 10 with values ranging from 0 to 1, both excluded (★★☆) -(**hint**: np.linespace) +(**hint**: np.linspace) diff --git a/100 Numpy exercises.ipynb b/100 Numpy exercises.ipynb index 166e06f..78456cb 100644 --- a/100 Numpy exercises.ipynb +++ b/100 Numpy exercises.ipynb @@ -801,7 +801,7 @@ }, "outputs": [], "source": [ - "Z = np.linspace(0,1,12,endpoint=True)[1:-1]\n", + "Z = np.linspace(0,1,11,endpoint=False)[1:]\n", "print(Z)" ] }, diff --git a/100 Numpy exercises.md b/100 Numpy exercises.md index 8f27845..799d1fa 100644 --- a/100 Numpy exercises.md +++ b/100 Numpy exercises.md @@ -369,7 +369,7 @@ print(Z) ```python -Z = np.linspace(0,1,12,endpoint=True)[1:-1] +Z = np.linspace(0,1,11,endpoint=False)[1:] print(Z) ```