2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5e9a093a74c4063ca6f7c155
|
|
|
|
challengeType: 11
|
|
|
|
videoId: eqSVcJbaPdk
|
|
|
|
---
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --description--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
|
|
|
More resources:
|
2020-12-16 00:37:30 -07:00
|
|
|
|
|
|
|
\- [Notebook](https://notebooks.ai/rmotr-curriculum/freecodecamp-intro-to-numpy-6c285b74)
|
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
What is the value of `a` after you run the following code?
|
|
|
|
|
|
|
|
```py
|
|
|
|
a = np.arange(5)
|
|
|
|
a + 20
|
|
|
|
```
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
```python
|
|
|
|
[20, 21, 22, 24, 24]
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
```python
|
|
|
|
[0, 1, 2, 3, 4]
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
```python
|
|
|
|
[25, 26, 27, 28, 29]
|
|
|
|
```
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|