2021-06-15 00:49:18 -07:00
---
id: 5e9a093a74c4063ca6f7c154
2021-07-26 23:39:21 +09:00
title: Conhecer os arrays do NumPy
2021-06-15 00:49:18 -07:00
challengeType: 11
videoId: VDYVFHBL1AM
2021-10-03 12:24:27 -07:00
bilibiliIds:
aid: 890607366
bvid: BV1zP4y1h7FR
cid: 409011400
2021-06-15 00:49:18 -07:00
dashedName: numpy-arrays
---
# --description--
2021-07-26 23:39:21 +09:00
*Ao invés de usar notebooks.ai como foi mostrado no vídeo, você pode usar o Google Colab como substituto.*
2021-06-15 00:49:18 -07:00
2021-07-26 23:39:21 +09:00
Mais recursos:
2021-06-15 00:49:18 -07:00
2021-07-26 23:39:21 +09:00
- [Notebooks no GitHub ](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy )
- [Como abrir notebooks do GitHub usando o Google Colab. ](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb )
2021-06-15 00:49:18 -07:00
# --question--
## --text--
2021-07-26 23:39:21 +09:00
O que será impresso pelo código a seguir?
2021-06-15 00:49:18 -07:00
```py
A = np.array([
['a', 'b', 'c'],
['d', 'e', 'f'],
['g', 'h', 'i']
])
print(A[:, :2])
```
## --answers--
```py
[['a' 'b']]
```
---
```py
[['b' 'c']
['e' 'f']
['h' 'i']]
```
---
```py
[['a' 'b']
['d' 'e']
['g' 'h']]
```
## --video-solution--
3