Limit exercise 5 fix to source

This commit is contained in:
Overman
2026-07-10 18:23:58 +08:00
parent 481bf195fb
commit 415f803d95
4 changed files with 211 additions and 211 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
!python -c "import numpy; numpy.info(numpy.add)" %run `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
!python -c "import numpy; numpy.info(numpy.add)" %run `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": "a0f6fafe", "id": "94b10be0",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# 100 numpy exercises\n", "# 100 numpy exercises\n",
@@ -18,7 +18,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "b9776715", "id": "1d0b9900",
"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": "886a415d", "id": "21313ae9",
"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": "0e099906", "id": "c4ad3a14",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@@ -46,7 +46,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "3d14e103", "id": "13bdf6d0",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [