Question 1: Short answer
hardAI-checkedNumPya = np.array([30, 10, 20, 40])
print(a.argsort())
print(a.argsort().argsort())
The first line prints [1 2 0 3]. What does the second line print?
1 question from NumPy
1 question · 1 min · score and explanations at the end
a = np.array([30, 10, 20, 40])
print(a.argsort())
print(a.argsort().argsort())
The first line prints [1 2 0 3]. What does the second line print?