Skip to content
ml-recall

#floor-division

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.array([-7, 7])
print(a // 2)
print(a % 3)

The first line prints [ 3] and the second prints [ 1].

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