Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 67)
67.
What does the NumPy function numpy.arange(1, 10, 2) return?
[1, 3, 5, 7, 9]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
[2, 4, 6, 8]
[1, 4, 7, 10]
Answer: Option
Explanation:
The numpy.arange() function creates an array with values from start (inclusive) to stop (exclusive) with the specified step.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.