Options 1:
a = np.array([1,2,3,4])
print(a[[False, True, False, False]])
- {0,2}
- [2]
- {2}
- [0,2,0,0]
Correct Answer:
- [2]
Options 2:
table = np.array([
[1,3],
[2,4]])
print(table.max(axis=1))
-
[2, 4] -
[3, 4] -
[4] -
[1,2]
Correct Answer:
-
[3, 4]