Skip to main content

--description--

Instead of using notebooks.ai like it shows in the video, you can use Google Colab instead.

More resources:

--question--

--text--

What will the following code print out?

A = np.array([
['a', 'b', 'c'],
['d', 'e', 'f'],
['g', 'h', 'i']
])

print(A[:, :2])

--answers--

[['a' 'b']]

[['b' 'c']
['e' 'f']
['h' 'i']]

[['a' 'b']
['d' 'e']
['g' 'h']]

--video-solution--

3