You have an array in your code. There is an integer in the input, it is an index of the row in the array. Print the row of the given array using np.bool_ type.
Data types in NumPy
Indexing and data types
Report a typo
Sample Input 1:
0Sample Output 1:
[False True True]Write a program in Python 3
import numpy as np
array = np.array([[0, 2, 1998],
[12, 0, 1212],
[21, 0, 0],
[7, 0, 2019]])
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.