Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 77)
77.
What does the NumPy function numpy.linspace(1, 10, 5) return?
[1, 3, 5, 7, 10]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1.0, 3.25, 5.5, 7.75, 10.0]
[1, 2.25, 3.5, 4.75, 6]
Answer: Option
Explanation:
The numpy.linspace() function generates evenly spaced numbers over a specified range.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.