freeCodeCamp/curriculum/challenges/ukrainian/08-data-analysis-with-python/data-analysis-with-python-course/numpy-arrays.md

1.2 KiB
Raw Blame History

id title challengeType videoId bilibiliIds dashedName
5e9a093a74c4063ca6f7c154 Numpy: масиви 11 VDYVFHBL1AM
aid bvid cid
890607366 BV1zP4y1h7FR 409011400
numpy-arrays

--description--

Замість використаного у відеоматеріалі notebooks.ai можна користуватись блокнотом Google Colab.

Додаткові ресурси:

--question--

--text--

Що надрукує наведений код?

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