Files
numpy-100/100_Numpy_random.ipynb
2026-04-29 06:34:30 +00:00

61 lines
1.5 KiB
Python

{
"cells": [
{
"cell_type": "markdown",
"id": "94b10be0",
"metadata": {},
"source": [
"# 100 numpy exercises\n",
"\n",
"This is a collection of exercises that have been collected in the numpy mailing list, on stack overflow\n",
"and in the numpy documentation. The goal of this collection is to offer a quick reference for both old\n",
"and new users but also to provide a set of exercises for those who teach.\n",
"\n",
"\n",
"If you find an error or think you've a better way to solve some of them, feel\n",
"free to open an issue at <https://github.com/rougier/numpy-100>."
]
},
{
"cell_type": "markdown",
"id": "1d0b9900",
"metadata": {},
"source": [
"File automatically generated. See the documentation to update questions/answers/hints programmatically."
]
},
{
"cell_type": "markdown",
"id": "21313ae9",
"metadata": {},
"source": [
"Run the `initialise.py` module, then call a random question with `pick()` an hint towards its solution with\n",
"`hint(n)` and the answer with `answer(n)`, where n is the number of the picked question."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c4ad3a14",
"metadata": {},
"outputs": [],
"source": [
"%run initialise.py"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "13bdf6d0",
"metadata": {},
"outputs": [],
"source": [
"pick()"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}