Skip to content
ml-recall

#casting

2 questions from NumPy

Timed test

2 questions · 2 min · score and explanations at the end

Take a test
Q 1 / 2Score 0 / 0

Question 1: Short answer

easyAI-checkedNumPy

What does the last line print?

a = np.array([1, 2, 3])
a[0] = 2.9
print(a[0])

a number