1.

To create sequences of numbers, NumPy provides a function __________ analogous to range that returns arrays instead of lists.(a) arange(b) aspace(c) aline(d) all of the mentionedThe question was posed to me in semester exam.My question is taken from NumPy topic in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct option is (a) arange

Best explanation: When arange is used with FLOATING point arguments, it is GENERALLY not possible to PREDICT the number of elements OBTAINED.



Discussion

No Comment Found

Related InterviewSolutions