Indexing and data types

Report a typo

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.

Sample Input 1:

0

Sample 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]])
___

Create a free account to access the full topic