Skip to content
ml-recall

#ravel

1 question from NumPy

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

mediumAI-checkedNumPy
a = np.arange(6).reshape(2, 3)
r = a.ravel()
f = a.flatten()
r[0] = 10
f[1] = 20
print(a[0, 0], a[0, 1])

The last line prints and .

Fill in every blank (hints in the boxes). Enter moves to the next blank.