2020-04-21 12:42:19 -04:00
|
|
|
---
|
|
|
|
id: 5e9a0a8e09c5df3cc3600ed3
|
|
|
|
title: Basics of Numpy
|
|
|
|
challengeType: 11
|
|
|
|
videoId: f9QrZrKQMLI
|
|
|
|
---
|
|
|
|
|
|
|
|
## Description
|
2020-08-04 20:56:41 +01:00
|
|
|
|
2020-04-21 12:42:19 -04:00
|
|
|
<section id='description'>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
## Tests
|
2020-08-04 20:56:41 +01:00
|
|
|
|
2020-04-21 12:42:19 -04:00
|
|
|
<section id='tests'>
|
|
|
|
|
2020-08-04 20:56:41 +01:00
|
|
|
````yml
|
2020-04-21 12:42:19 -04:00
|
|
|
question:
|
2020-08-04 20:56:41 +01:00
|
|
|
text: |
|
|
|
|
What will the following code print?
|
|
|
|
|
|
|
|
```python
|
|
|
|
b = np.array([[1.0,2.0,3.0],[3.0,4.0,5.0]])
|
|
|
|
print(b)
|
|
|
|
```
|
2020-04-21 12:42:19 -04:00
|
|
|
answers:
|
2020-08-04 20:56:41 +01:00
|
|
|
- |
|
|
|
|
```python
|
|
|
|
[[1.0 2.0 3.0]
|
|
|
|
[3.0 4.0 5.0]]
|
|
|
|
```
|
|
|
|
- |
|
|
|
|
```python
|
|
|
|
[[1. 2. 3.]
|
|
|
|
[3. 4. 5.]]
|
|
|
|
```
|
|
|
|
- |
|
|
|
|
```python
|
|
|
|
[[1. 3.]
|
|
|
|
[2. 4.]
|
|
|
|
[3. 5.]
|
|
|
|
```
|
2020-04-29 20:41:08 -04:00
|
|
|
solution: 2
|
2020-08-04 20:56:41 +01:00
|
|
|
````
|
2020-04-21 12:42:19 -04:00
|
|
|
|
|
|
|
</section>
|