solutions update from 836eab7
This commit is contained in:
parent
836eab7578
commit
2db57d0e16
File diff suppressed because it is too large
Load Diff
@ -38,6 +38,9 @@ print(Z)
|
||||
```python
|
||||
Z = np.zeros((10,10))
|
||||
print("%d bytes" % (Z.size * Z.itemsize))
|
||||
|
||||
# Simpler alternative
|
||||
print("%d bytes" % Z.nbytes)
|
||||
```
|
||||
#### 5. How to get the documentation of the numpy add function from the command line? (★☆☆)
|
||||
`hint: np.info`
|
||||
|
||||
@ -38,6 +38,9 @@ print(Z)
|
||||
```python
|
||||
Z = np.zeros((10,10))
|
||||
print("%d bytes" % (Z.size * Z.itemsize))
|
||||
|
||||
# Simpler alternative
|
||||
print("%d bytes" % Z.nbytes)
|
||||
```
|
||||
#### 5. How to get the documentation of the numpy add function from the command line? (★☆☆)
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c2a7dc72",
|
||||
"id": "6f6a89e6",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# 100 numpy exercises\n",
|
||||
@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "0f9c3a25",
|
||||
"id": "4281e2bd",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"File automatically generated. See the documentation to update questions/answers/hints programmatically."
|
||||
@ -26,7 +26,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "7334326e",
|
||||
"id": "46502bff",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"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",
|
||||
"execution_count": null,
|
||||
"id": "abd0d1b2",
|
||||
"id": "4d7dd9e9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@ -46,7 +46,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "ecfa16ec",
|
||||
"id": "4bd2b4f7",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user