Compare commits
5 Commits
6cedcb2ad9
...
bc7d42eb84
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc7d42eb84 | ||
|
|
844439209a | ||
|
|
415f803d95 | ||
|
|
481bf195fb | ||
|
|
c6840487d9 |
File diff suppressed because it is too large
Load Diff
@@ -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]`
|
||||||
|
|||||||
@@ -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 (★☆☆)
|
||||||
|
|
||||||
|
|||||||
@@ -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": [
|
||||||
|
|||||||
@@ -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 (★☆☆)
|
||||||
|
|||||||
Reference in New Issue
Block a user