Numpy operations - correct solution doesn't work

For the quiz:

What is the value of a after you run the following code?

a = np.arange(5)
a + 20

A) [20, 21, 22, 24, 24]
B) [0, 1, 2, 3, 4]
C) [25, 26, 27, 28, 29]

The correct answer that’s accepted is B)
However, shouldn’t the correct answer be A) ?

Screenshot below taken from Google Colab

Selection_195

This is a little tricky. This does not actually change the value in a

1 Like