Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 90)
90.
What is the result of the expression np.linspace(0, 1, num=5, endpoint=False)?
[0.0, 0.25, 0.5, 0.75, 1.0]
[0.0, 0.2, 0.4, 0.6, 0.8]
[0.0, 0.2, 0.4, 0.6, 0.8, 1.0]
[0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2]
Answer: Option
Explanation:
The np.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.