Apply exercise 5 fix to source

This commit is contained in:
Overman
2026-07-10 15:17:12 +08:00
parent c6840487d9
commit 481bf195fb
3 changed files with 210 additions and 210 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "94b10be0", "id": "a0f6fafe",
"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": "b9776715",
"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": "886a415d",
"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": "0e099906",
"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": "3d14e103",
"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 (★☆☆)