The third question in NumPy asks about the output of this code:
import numpy
x = numpy.array([2,4,6,8,10])
y = numpy.arange(0,15,3)
z = x*y
print (z[3])
and the answer is 72 (since x[3] = 8
and y[3] = 9
and the lengths of x
and y
are the same), but it marks the answer as It will result in an error
, which is incorrect