freeCodeCamp/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-c.../numpy-boolean-arrays.md

549 B

id challengeType videoId
5e9a093a74c4063ca6f7c156 11 N1ttsMmcVMM

--description--

More resources:

- Notebook

--question--

--text--

What will the following code print out?

a = np.arange(5)

print(a <= 3)

--answers--

[False, False, False, False, True]

[5]

[0, 1, 2, 3]

[True, True, True, True, False]

--video-solution--

4

--hints--

--solutions--