Compare commits

...

5 Commits

Author SHA1 Message Date
rougier
bc7d42eb84 solutions update from 8444392 2026-07-20 08:57:17 +00:00
Nicolas P. Rougier
844439209a Merge pull request #256 from jsyzlbw/master
Fix solution for exercise 5
2026-07-20 10:56:57 +02:00
Overman
415f803d95 Limit exercise 5 fix to source 2026-07-10 18:23:58 +08:00
Overman
481bf195fb Apply exercise 5 fix to source 2026-07-10 15:17:12 +08:00
Overman
c6840487d9 Fix solution for exercise 5 2026-07-08 18:55:36 +08:00
5 changed files with 212 additions and 212 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -46,7 +46,7 @@ print("%d bytes" % Z.nbytes)
`hint: np.info` `hint: np.info`
```python ```python
%run `python -c "import numpy; numpy.info(numpy.add)"` !python -c "import numpy; numpy.info(numpy.add)"
``` ```
#### 6. Create a null vector of size 10 but the fifth value which is 1 (★☆☆) #### 6. Create a null vector of size 10 but the fifth value which is 1 (★☆☆)
`hint: array[4]` `hint: array[4]`

View File

@@ -46,7 +46,7 @@ print("%d bytes" % Z.nbytes)
```python ```python
%run `python -c "import numpy; numpy.info(numpy.add)"` !python -c "import numpy; numpy.info(numpy.add)"
``` ```
#### 6. Create a null vector of size 10 but the fifth value which is 1 (★☆☆) #### 6. Create a null vector of size 10 but the fifth value which is 1 (★☆☆)

View File

@@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "94b10be0", "id": "4a87d009",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# 100 numpy exercises\n", "# 100 numpy exercises\n",
@@ -18,7 +18,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "1d0b9900", "id": "16b631f6",
"metadata": {}, "metadata": {},
"source": [ "source": [
"File automatically generated. See the documentation to update questions/answers/hints programmatically." "File automatically generated. See the documentation to update questions/answers/hints programmatically."
@@ -26,7 +26,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "21313ae9", "id": "8c00c264",
"metadata": {}, "metadata": {},
"source": [ "source": [
"Run the `initialise.py` module, then call a random question with `pick()` an hint towards its solution with\n", "Run the `initialise.py` module, then call a random question with `pick()` an hint towards its solution with\n",
@@ -36,7 +36,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "c4ad3a14", "id": "c5fa0b45",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@@ -46,7 +46,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "13bdf6d0", "id": "6c4f9753",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [

View File

@@ -47,7 +47,7 @@ How to get the documentation of the numpy add function from the command line? (
hint: np.info hint: np.info
< a5 < a5
%run `python -c "import numpy; numpy.info(numpy.add)"` !python -c "import numpy; numpy.info(numpy.add)"
< q6 < q6
Create a null vector of size 10 but the fifth value which is 1 (★☆☆) Create a null vector of size 10 but the fifth value which is 1 (★☆☆)